com.ibm.wsspi.wssecurity.config
Class WSIdKeyStoreMapKeyLocator

java.lang.Object
  |
  +--com.ibm.wsspi.wssecurity.config.KeyStoreKeyLocator
        |
        +--com.ibm.wsspi.wssecurity.config.WSIdKeyStoreMapKeyLocator
All Implemented Interfaces:
Initializable, KeyLocator

public class WSIdKeyStoreMapKeyLocator
extends KeyStoreKeyLocator

Maps the authenticated ID on WAS and the actual key in KeyStore object.
In addition to the properties specified in KeyStoreKeyLocator, This class accepts two kinds of properties: id_n and mappedName_n where n is an integer. The former represents the authenticated ID and the latter represents the abstract key "name" which is also specified in KeyStoreKeyLocator.


Constructor Summary
WSIdKeyStoreMapKeyLocator()
           
 
Method Summary
 java.security.cert.Certificate getCertificate(java.lang.String name)
          Retrieves the certificate which corresponds to the authenticated ID.
 java.security.Key getEncryptionKey(java.lang.String name, java.lang.Object context)
          Retrieves the encryption key which corresponds to the authenticated ID.
 void init(java.util.Map map)
          Initializes the object.
 
Methods inherited from class com.ibm.wsspi.wssecurity.config.KeyStoreKeyLocator
encodedName, getCertificate, getConfidentialKey, getDecryptionKey, getDefaultBasePath, getName, getName, getNames, getSigningKey, getVerificationKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIdKeyStoreMapKeyLocator

public WSIdKeyStoreMapKeyLocator()
Method Detail

init

public void init(java.util.Map map)
          throws SoapSecurityException
Description copied from interface: Initializable
Initializes the object.
Overrides:
init in class KeyStoreKeyLocator
Following copied from interface: com.ibm.wsspi.wssecurity.Initializable
Parameters:
map - a Map object which contains name-value pairs. These pairs are specified in <Property> elements in the configuration XMI files.

getEncryptionKey

public java.security.Key getEncryptionKey(java.lang.String name,
                                          java.lang.Object context)
                                   throws KeyLocatorException
Retrieves the encryption key which corresponds to the authenticated ID.
Overrides:
getEncryptionKey in class KeyStoreKeyLocator
Parameters:
name - Ignored because the key are retrieved according to the authentication information.
context - Reserved for the future use.

getCertificate

public java.security.cert.Certificate getCertificate(java.lang.String name)
                                              throws KeyLocatorException
Retrieves the certificate which corresponds to the authenticated ID.
Overrides:
getCertificate in class KeyStoreKeyLocator
Parameters:
name - ignored because the key are retrieved according to the authentication information.