+

Search Tips   |   Advanced Search

Set the client for request encryption: Encrypting the message parts


To configure the client for request encryption, specify which message parts to encrypt when configuring the client.

There is an important distinction between V 5.x and V6 and later applications. The information in this article supports V5.x applications only that are used with WAS V6.0.x and later. The information does not apply to V 6.0.x and later applications. Prior to completing these steps, read either of the following topics to familiarize theself with the WS Extensions tab and the WS Binding tab in the Client Deployment Descriptor Editor within an assembly tool:

These two tabs are used to configure the WS-Security extensions and WS-Security bindings, respectively.

Complete the following steps to specify which message parts to encrypt when configuring the client for request encryption:

 

  1. Launch an assembly tool.

    See the related information on Assembly Tools.

  2. Switch to the Java EE perspective. Click Window > Open Perspective > J2EE.

  3. Click Application Client Projects > application_name > appClientModule > META-INF.

  4. Right-click the application-client.xml file, select Open with > Deployment descriptor editor.

  5. Click the WS extensions tab, which is located at the bottom of Client Deployment Descriptor Editor within the assembly tool.

  6. Expand Request sender configuration > Confidentiality. Confidentiality refers to encryption while integrity refers to digital signing. Confidentiality reduces the risk of someone understanding the message flowing across the Internet. With confidentiality specifications, the message is encrypted before it is sent and decrypted when it is received at the correct target.

    See on encrypting , see XML encryption.

  7. Select the parts of the message to encrypt by clicking Add.

    We can select one of the following parts:

    Bodycontent

    User data portion of the message

    Usernametoken

    Basic authentication information, if selected

 

Next steps

After you specify which message parts to encrypt, specify which method to use to encrypt the request message. See Set the client for request encryption: choosing the encryption method for more information.

 

Related concepts


Request sender
Assembly tools

 

Related tasks


Set the client for request encryption: choosing the encryption method
Set the client security bindings using an assembly tool
Set the security bindings on a server acting as a client
Set key locators using an assembly tool
Set key locators
Secure Web services for V5.x applications using XML encryption