com.ibm.wsspi.wssecurity.config

Interface KeyLocator

All Superinterfaces:
Initializable
All known implementing classes:
KeyStoreKeyLocator, WSIdKeyStoreMapKeyLocator

Deprecated.
  1. public interface KeyLocator
  2. extends Initializable
Retrieves the key for signature and encryption, either with or without the abstract or concrete key "name" as a clue.

Method Summary

Modifier and Type Method and Description
  1. java.security.cert.Certificate
getCertificate(java.security.Key key)
Deprecated. Returns a certificate object which corresponds to the specified key.
  1. java.security.cert.Certificate
getCertificate(java.lang.String name)
Deprecated. Returns a certificate object which corresponds to the given abstract or concrete key "name".
  1. java.security.Key
getDecryptionKey(java.lang.String name,java.lang.Object context)
Deprecated. Returns an decryption key.
  1. java.security.Key
getEncryptionKey(java.lang.String name,java.lang.Object context)
Deprecated. Returns an encryption key.
  1. java.lang.String
getName(java.security.Key key)
Deprecated. Returns a concrete key "name" which corresponds to the specified key.
  1. java.lang.String
getName(java.lang.String name)
Deprecated. Returns a concrete key "name" which corresponds to the given abstract key "name", which is used as a value of the <KeyName> element.
  1. java.util.Set
getNames(java.lang.Object context)
Deprecated. Returns a Set object which contains all the concrete key "name"s.
  1. java.security.Key
getSigningKey(java.lang.String name)
Deprecated. Returns a signing key.
  1. java.security.Key
getVerificationKey(java.lang.String name)
Deprecated. Returns a verification key.
Methods inherited from interface com.ibm.wsspi.wssecurity.Initializable
init

Method Detail

getNames

  1. java.util.Set getNames(java.lang.Object context)
  2. throws KeyLocatorException
Deprecated.
Returns a Set object which contains all the concrete key "name"s.
Parameters:
context - Reserved for the future use.
Returns:
A Set object which contains all the concrete key "name"s.
Throws:

getEncryptionKey

  1. java.security.Key getEncryptionKey( java.lang.String name,
  2. java.lang.Object context)
  3. throws KeyLocatorException
Deprecated.
Returns an encryption key.
Parameters:
name - An abstract or concrete key "name".
context - Reserved for the future use.
Returns:
An encryption key.
Throws:

getDecryptionKey

  1. java.security.Key getDecryptionKey( java.lang.String name,
  2. java.lang.Object context)
  3. throws KeyLocatorException
Deprecated.
Returns an decryption key.
Parameters:
name - An abstract or concrete key "name".
context - Reserved for the future use.
Returns:
An decryption key.
Throws:

getSigningKey

  1. java.security.Key getSigningKey( java.lang.String name)
  2. throws KeyLocatorException
Deprecated.
Returns a signing key.
Parameters:
name - An abstract or concrete key "name".
Returns:
A signing key.
Throws:

getVerificationKey

  1. java.security.Key getVerificationKey( java.lang.String name)
  2. throws KeyLocatorException
Deprecated.
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>.

Parameters:
name - An abstract or concrete key "name".
Returns:
A verification key.
Throws:

getName

  1. java.lang.String getName(java.security.Key key)
  2. throws KeyLocatorException
Deprecated.
Returns a concrete key "name" which corresponds to the specified key.
Parameters:
key - A key which can be retrieved through the KeyLocator object.
Returns:
A concrete key "name".
Throws:

getCertificate

  1. java.security.cert.Certificate getCertificate( java.security.Key key)
  2. throws KeyLocatorException
Deprecated.
Returns a certificate object which corresponds to the specified key.
Parameters:
key - A key which can be retrieved through the KeyLocator object.
Returns:
A certificate object.
Throws:

getCertificate

  1. java.security.cert.Certificate getCertificate( java.lang.String name)
  2. throws KeyLocatorException
Deprecated.
Returns a certificate object which corresponds to the given abstract or concrete key "name".
Parameters:
name - An abstract or concrete key "name".
Returns:
A certificate object.
Throws:

getName

  1. java.lang.String getName(java.lang.String name)
  2. throws KeyLocatorException
Deprecated.
Returns a concrete key "name" which corresponds to the given abstract key "name", which is used as a value of the <KeyName> element.
Parameters:
name - An abstract key "name".
Returns:
A concrete key "name".
Throws: