Adding time stamps for confidentiality in consumer security constraints with keywords
This task is used to specify that a time stamp embedded in a particular element and encrypted is checked for encryption along with the message parts in the Required Integrity . Complete the following steps to specify the time stamp for confidentiality using keywords when you configure the consumer security constraints for either the response consumer or the request consumer. The response consumer is configured for the client and the request consumer is configured for the server. In the following steps, configure either the client-side extensions in step 2 or the server-side extensions in step 3.
- Click Window > Open Perspective > J2EE.
- Optional:
Locate the client-side extensions using the Project Explorer window. The Client Deployment Descriptor window is displayed. This Web service contains the extensions that you need to configure. Complete the following steps to locate the client-side extensions:
- Expand the Web Services > Client section and double-click the name of the Web service.
- Click the WS Extension tab and expand the Response Consumer Configuration section.
- Optional:
Locate the server-side extensions using the Project Explorer window. The Web Services Editor window is displayed. This Web service contains the extensions that you need to configure. Complete the following steps to locate the server-side extensions:
- Expand the Web Services > Services section and double-click the name of the Web service.
- Click the Extensions tab and expand the Request Consumer Service Configuration Details section.
- Expand the Required Confidentiality section. Confidentiality refers to encryption while integrity refers to digital signing. Confidentiality reduces the risk of someone intercepting the message as it moves across a network. With confidentiality specifications, the message is encrypted before it is sent and decrypted when it is received at the intended target. For more information on encryption, see XML encryption.
- Click Add to specify that the element within which a timestamp is added and encrypted, is checked for confidentiality. The Required Confidentiality Dialog window is displayed. Complete the following steps to specify a configuration:
- Specify a name for the confidentiality element in the Required Confidentiality Name field.
- Specify a usage type in the Usage type field. This field specifies the requirement for the confidentiality element. The value of this attribute is either Required or Optional.
- In the Timestamp section, click Add and select the Timestamp dialect. The http://www.ibm.com/websphere/webservices/wssecurity/dialect-was dialect specifies the message part that is verified for encryption using the keywords. If you select this dialect, you can select one of the following keywords under the Timestamp keyword heading:
- bodycontent
- Specifies the user data portion of the message. If this keyword is selected, the body along with the embedded timestamp is checked for confidentiality.
- usernametoken
- Specifies a username token that contains the basic authentication information such as a user name and a password. Usually, the username token is encrypted so that the user information is secure. If you select this keyword, the username token along with the embedded timestamp is checked for confidentiality.
- digestvalue
- Specifies a unique digest value. When a part of the Simple Object Access Protocol (SOAP) message is signed, a unique digest value is created and is used by the receiving party to check the integrity of the message. You can encrypt the digestvalue element to secure the digest value. If you select this keyword, the digestvalue along with the embedded timestamp is checked for confidentiality.
- If you have not specified message part(s) in Required Confidentiality, in the Message Parts section click Add to add message parts. You must define at least one message part in Required Confidentiality for specifying Timestamp in Required Confidentiality."
- In the Message Parts section, select the message parts keyword.
- Click OK to save the configuration changes.
Note: These configurations for the consumer and the generator must match.
In addition to the time stamp, you can specify that the nonce is checked for confidentiality. For more information, see the following articles:
After you specify which message parts to check for encryption, you must specify which method is used to check the encryption. For more information, see Configuring encryption information for the consumer binding.
Related tasks
Adding a nonce for integrity in consumer security constraints with an XPath expression
Configuring encryption information for the consumer binding
Adding a nonce for integrity in consumer security constraints with keywords