Configure nonce for the server level

Nonce 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...

  1. Application level

  2. 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...

  1. Connect to the administrative console by typing http://localhost:9090/admin in your Web browser unless you have changed the port number.

  2. Click Servers > Application Servers > server.

  3. Under Additional Properties, click Web Services: Default Bindings for Web Services Security.

  4. 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.

  5. 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.

  6. 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.

  7. 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 Also

Nonce, a randomly generated token
Username token element
Configuring nonce for the application level