Network Deployment (Distributed operating systems), v8.0 > Secure applications and their environment > Secure web services > Secure web services > Web Services Security concepts > Web Services Security concepts for v5.x applications


Key locator

A key locator (com.ibm.wsspi.wssecurity.config.KeyLocator) is an abstraction of the mechanism that retrieves the key for digital signature and encryption.

There is an important distinction between v5.x and Version 6.0.x applications. The information in this article supports Version 5.x applications only that are used with WAS v6.0.x and later. The information does not apply to Version 6.0.x applications.

We can use any of the following infrastructure from which to retrieve the keys depending upon the implementation:

Key locators search the key using some type of a clue. The following types of clues are supported:

Current versions of key locators do not support the retrieval of verification keys because current Web Services Security implementations do not support the secret key-based signature. Because the key locators support the public key-based signature only, the key for verification is embedded in the X.509 certificate as a <BinarySecurityToken> element in the incoming message.

For example, key locators can obtain the identity of the caller from the context and can retrieve the public key of the caller for response encryption.


Usage scenarios

This section describes the usage scenarios for key locators.

Signing

The name of the signing key is specified in the Web Services Security configuration. This value is passed to the key locator and the actual key is returned. The corresponding X.509 certificate also can be returned.


Verification

As described previously, key locators are not used in signature verification.

Encryption

The name of the encryption key is specified in the Web Services Security configuration. This value is passed to the key locator and the actual key is returned.

Decryption

The Web Services Security specification recommends using the key identifier instead of the key name. However, while the algorithm for computing the identifier for the public keys is defined in Internet Engineering Task Force (IETF) Request for Comment (RFC) 3280, there is no agreed upon algorithm for the secret keys. Therefore, the current implementation of Web Services Security uses the identifier only when public key-based encryption is performed. Otherwise, the ordinal key name is used.

When you use public key-based encryption, the value of the key identifier is embedded in the incoming encrypted message. Then, the Web Services Security implementation searches for all the keys managed by the key locator and decrypts the message using the key whose identifier value matches the one in the message.

When you use secret key-based encryption, the value of the key name is embedded in the incoming encrypted message. The Web Services Security implementation asks the key locator for the key with the name that matches the name in the message and decrypts the message using the key.
Binary security token
Secure web services for v5.x applications using XML digital signature

+

Search Tips   |   Advanced Search