|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.wsspi.wssecurity.config.KeyStoreKeyLocator
Maps an abstract key "name" to the actual key in KeyStore
object.
This class accepts key store and key information. Key information consists
of three pieces: abstract key "name", alias in the key store and optional
key password (in case the key is not public one). These values are specified
in WS-Security configuration XMI files and passed to init
method as encoded name-value pairs.
Constructor Summary | |
---|---|
KeyStoreKeyLocator()
Invoked by WS-Security runtime. |
Method Summary | |
---|---|
static java.lang.String |
encodedName(java.lang.String dn)
Encodes and normalizes a DName string to some degree. |
java.security.cert.Certificate |
getCertificate(java.security.Key key)
Returns a certificate object which corresponds to the specified key. |
java.security.cert.Certificate |
getCertificate(java.lang.String name)
Returns a certificate object which corresponds to the given abstract or concrete key "name". |
protected java.security.Key |
getConfidentialKey(java.lang.String name,
java.lang.Object context)
Returns either private key or shared key. |
java.security.Key |
getDecryptionKey(java.lang.String name,
java.lang.Object context)
Returns an decryption key. |
protected java.lang.String |
getDefaultBasePath()
Reserved for the future use. |
java.security.Key |
getEncryptionKey(java.lang.String name,
java.lang.Object context)
Returns an encryption key. |
java.lang.String |
getName(java.security.Key key)
Returns a concrete key "name" which corresponds to the specified key. |
java.lang.String |
getName(java.lang.String name)
Returns a concrete key "name" which corresponds to the given abstract key "name", which is used as a value of the <KeyName> element. |
java.util.Set |
getNames(java.lang.Object context)
Returns a Set object which contains all the
concrete key "name"s. |
java.security.Key |
getSigningKey(java.lang.String name)
Returns a signing key. |
java.security.Key |
getVerificationKey(java.lang.String name)
Returns a verification key. NOTE: This function is not implemented in current WS-Security runtime, because verification key is always embedded in the received message as <BinarySecurityToken>. |
void |
init(java.util.Map map)
Initializes the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeyStoreKeyLocator()
Method Detail |
protected java.lang.String getDefaultBasePath()
public void init(java.util.Map map) throws SoapSecurityException
Initializable
init
in interface Initializable
com.ibm.wsspi.wssecurity.Initializable
map
- a Map
object which contains name-value pairs.
These pairs are specified in <Property>
elements in
the configuration XMI files.public java.util.Set getNames(java.lang.Object context) throws KeyLocatorException
KeyLocator
Set
object which contains all the
concrete key "name"s.getNames
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
context
- Reserved for the future use.Set
object which contains all the
concrete key "name"s.protected java.security.Key getConfidentialKey(java.lang.String name, java.lang.Object context) throws KeyLocatorException
name
- An abstract key "name".context
- Reserved for the future use.public java.security.Key getEncryptionKey(java.lang.String name, java.lang.Object context) throws KeyLocatorException
KeyLocator
getEncryptionKey
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
name
- An abstract or concrete key "name".context
- Reserved for the future use.public java.security.Key getDecryptionKey(java.lang.String name, java.lang.Object context) throws KeyLocatorException
KeyLocator
getDecryptionKey
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
name
- An abstract or concrete key "name".context
- Reserved for the future use.public java.security.Key getSigningKey(java.lang.String name) throws KeyLocatorException
KeyLocator
getSigningKey
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
name
- An abstract or concrete key "name".public java.security.Key getVerificationKey(java.lang.String name) throws KeyLocatorException
KeyLocator
getVerificationKey
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
name
- An abstract or concrete key "name".public java.lang.String getName(java.security.Key key) throws KeyLocatorException
KeyLocator
getName
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
key
- A key which can be retrieved through the
KeyLocator
object.public java.security.cert.Certificate getCertificate(java.security.Key key) throws KeyLocatorException
KeyLocator
getCertificate
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
key
- A key which can be retrieved through the
KeyLocator
object.public java.security.cert.Certificate getCertificate(java.lang.String name) throws KeyLocatorException
KeyLocator
getCertificate
in interface KeyLocator
com.ibm.wsspi.wssecurity.config.KeyLocator
name
- An abstract or concrete key "name".public static java.lang.String encodedName(java.lang.String dn) throws KeyLocatorException
dn
- A DName string.public java.lang.String getName(java.lang.String name) throws KeyLocatorException
getName
in interface KeyLocator
name
- An abstract key "name".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |