Configure the client for request encryption: choosing the encryption method

 

Before you begin

Important distinction between V5.x and v6.x applications

Note: The information in this article supports v5.x applications only that are used with WAS v6.x. The information does not apply to v6.0.x applications.

Prior to completing these steps, read either of the following topics to familiarize yourself 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 Web services security extensions and Web services security bindings, respectively.

 

Overview

Complete the following steps to specify which encryption method to use when configuring the client for request encryption:

 

Procedure

  1. Launch an assembly tool. For more information on the assembly tools, see Assembly tools.

  2. Open the J2EE perspective by clicking Window > Open perspective > Other > J2EE.

  3. Click Windows > Open perspective > Other > J2EE.

  4. Click Application Client Projects > appname > appClientModule > META-INF.

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

  6. Click the WS binding tab, which is located at the bottom of the Client Deployment Descriptor editor within the assembly tool.

  7. Expand Security request sender binding configuration > Encryption information.

  8. Select an encryption option and click Edit to view the encryption information or click Add to add another option.   The following table describes the purpose of this information. Some of these definitions are based on the XML-Encryption specification, which is located at the following Web address:  http://www.w3.org/TR/xmlenc-core

    Encryption name

    Refers to the name of the encryption information entry.

    Data encryption method algorithm

    Encrypts and decrypts data in fixed size, multiple octet blocks.

    Key encryption method algorithm

    Represents public key encryption algorithms that are specified for encrypting and decrypting keys.

    Encryption key name

    Represents a Subject  (Owner field of the certificate) from a public key certificate found by the encryption key locator, which is used by the key encryption method algorithm to encrypt the private key. The private key is used to encrypt the data. 

    The key chosen must be a public key of the target. Encryption must be done using the public key and decryption must be done by the target using the private key (the personal certificate of the target).

    Encryption key locator

    Represents a reference to a key locator implementation class that locates the correct key store where the alias and the certificate exist. For more information on configuring key locators, see Configuring key locators using an assembly tool and Configuring key locators using the administrative console.

 

Result

For more information, see Configuring key locators using an assembly tool and Configuring key locators using the administrative console.

 

What to do next

You must specify which parts of the request message to encrypt. See Configuring the client for request encryption: Encrypting the message parts if you have not previously specified this information.


 

See Also


Request sender
XML encryption

 

Related Tasks


Configuring the client for request encryption: Encrypting the message parts
Configuring key locators using an assembly tool
Configuring key locators using the administrative console

 

Related Information


XML Encryption Syntax and Processing W3C Recommendation 10 December 2002