Adding time stamps for integrity in consumer security constraints with keywords

This task is used to specify that when a time stamp is embedded in a particular element, the parent of the time stamp is expected to be signed with the message parts. Complete the following steps to specify that the parent element of the time stamp is expected in the element. Also, the time stamp is included in the signature for the message parts. 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.

  1. Click Window > Open Perspective > J2EE.

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

    1. Expand the Web Services > Client section and double-click the name of the Web service.

    2. Click the WS Extension tab and expand the Response Consumer Configuration section.

  3. 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:

    1. Expand the Web Services > Services section and double-click the name of the Web service.

    2. Click the Extensions tab and expand the Request Consumer Service Configuration Details section.

  4. Expand the Required Integrity section. Integrity refers to digital signature while confidentiality refers to encryption. Integrity decreases the risk of data modification when you transmit data across a network. For more information on digitally signing Simple Object Access Protocol (SOAP) messages, see XML digital signature.

  5. Click Add to specify a time stamp that is expected in the parent element of the keyword. The parent element of the time stamp is also expected to be included in the signature for the message part. The Required Integrity Dialog window is displayed. Before you configure the time stamp in the Required Integrity, configure at least one message part or element that is expected to be signed. Complete the following steps to specify a configuration:

    1. Specify a name for the integrity element in the Required Integrity Name field.

    2. Specify a usage type in the Usage type field. This field specifies the requirement for the integrity element. The value of this attribute is either Required or Optional. The following options are available:

      Required

      If you select Required and the required message parts or elements are not signed, then the message is rejected with SOAP fault.

      Optional

      If you select Optional, then the digital signature of the selected message parts or elements is verified if they are signed. However, the consumer does not reject the message if the selected message parts or elements are not signed.

  6. In the Timestamp section, click Add and select the Timestamp dialect. The http://www.ibm.com/websphere/webservices/wssecurity/dialect-was dialect specifies the parent element of the expected time stamp. If you select this dialect, you can select one of the following keywords under the Timestamp keyword heading:

    body

    Specifies the user data portion of the message. If you select the body option, a time stamp is embedded in Simple Object Access Protocol (SOAP) body. Also, the parent of the time stamp (SOAP body) is expected to be signed with the message parts in the Required Integrity.

    securitytoken

    Specifies that a time stamp is expected to be embedded in the security token element. Also, the parent of the time stamp (security token) is expected to be signed with the message parts in the Required Integrity.

    dsigkey

    Specifies that the time stamp is inserted into the key information element, which is used for digital signature, and the key information element is signed.

    enckey

    Specifies that the time stamp is inserted into the key information element, which is used for encryption, and the key information element is signed.

    messageid

    Specifies that the time stamp is inserted into the <wsa:MessageID> element and the <wsa:MessageID> element is signed.

    to

    Specifies that the time stamp is inserted into the <wsa:To> element within the message and that the <wsa:To> element is signed.

    action

    Specifies that the <wsa:Action> element is signed.

    relatesto

    Specifies that the times tamp is inserted into the <wsa:RelatesTo> element within the message and the <wsa:RelatesTo> element is signed.

  7. If you have not defined a message part for Required Integrity, define at least one message part to add a time stamp for Required Integrity. Complete the following steps to define a message part:

    1. In the Message Parts section, click Add and select http://www.ibm.com/websphere/webservices/wssecurity/dialect-was in the Message parts dialect field.

    2. In the Message Parts section, select the message parts keyword.

    3. 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 signed. For more information, see the following articles:

After you have specified which message parts to digitally sign, you must specify which method is used to digitally sign the message. For more information, see Configuring signing information for the consumer binding.

 

Related tasks

Adding a stand-alone time stamp in consumer security constraints

Adding a nonce for integrity in consumer security constraints with an XPath expression

Configuring signing information for the consumer binding

Adding a nonce for integrity in consumer security constraints with keywords