Configure nonce for the server levelNonce is a randomly generated, cryptographic token used to prevent the theft of username tokens used with SOAP messages. Nonce is used in conjunction with the BasicAuth authentication method.
This task provides instructions on how to configure nonce for the server level using the WAS administrative console. You can configure nonce at the application level and the cell level. However, consider the order of precedence...
- Application level
- Server level
If you configure nonce on the application level and the server level, the values specified for the application level take precedence over the values specified for the server level. In a WebSphere Application Server environment, specify values for the Nonce Cache Timeout, Nonce Maximum Age, and Nonce Clock Skew fields on the server level to use nonce effectively. Complete the following steps to configure nonce on the server level...
- Connect to the administrative console by typing http://localhost:9090/admin in your Web browser unless you have changed the port number.
- Click Servers > Application Servers > server.
- Under Additional Properties, click Web Services: Default Bindings for Web Services Security.
- Specify a value, in seconds, for the Nonce Cache Timeout field. The value specified for the Nonce Cache Timeout field indicates how long the nonce remains cached before it is expunged. You must specify a minimum of 300 seconds. However, if you do not specify a value, the default is 600 seconds. This field is required for the server level.
- Specify (optional) a value, in seconds, for the Nonce Maximum Age field.The value specified for the Nonce Maximum Age field indicates how long the nonce is valid. You must specify a minimum of 300 seconds, but the value cannot exceed the number of seconds specified for the Nonce Cache Timeout field on the server level.
You can specify the Nonce Cache Timeout value for the cell level by clicking Security > Web Services > Properties.
This field is required for the server level.
- Specify a value, in seconds, for the Nonce Clock Skew field. The value specified for the Nonce Clock Skew field specifies the amount of time, in seconds, to consider when the message receiver checks the timeliness of the value. Consider the following information when you set this value...
- Difference in time between the message sender and the message receiver if the clocks are not synchronized.
- Time needed to encrypt and transmit the message.
- Time needed to get through network congestion.
You must specify at least 0 seconds for the Nonce Clock Skew field. However, the maximum value cannot exceed the number of seconds specified in the Nonce Maximum Age field on the server level. If you do not specify a value, the default is 0 seconds.
- Restart the server.If you change the Nonce Cache Timeout value and do not restart the server, the change is not recognized by the server.
See AlsoNonce, a randomly generated token
Username token element
Configuring nonce for the application level