com.ibm.wsspi.security.ltpa
Interface TokenFactory
- public interface TokenFactory
This interface is implemented by a provider to create LTPA tokens. The class is loaded via the security property "com.ibm.wsspi.security.ltpa.tokenFactory". One can put multiple token factories in this property using the | delimiter. The order determines which token will be used for a specific purpose, to be defined.
Method Summary
Modifier and Type | Method and Description |
---|---|
createToken(java.util.Map tokenData)
Returns a Token based on the type of configured token
|
|
|
initialize(java.util.Map tokenFactoryMap)
Initializes the token factories with a Map of configuration info.
|
validateTokenBytes(byte[] encryptedData)
Returns a Token based on the type of configured token
|
Method Detail
initialize
- void initialize(java.util.Map tokenFactoryMap)
Initializes the token factories with a Map of configuration info.
This method will be called any time the configuration data
changes including the encryption keys.
validateTokenBytes
- Token validateTokenBytes(byte[] encryptedData)
- throws com.ibm.websphere.security.auth.InvalidTokenException
- com.ibm.websphere.security.auth.TokenExpiredException
Returns a Token based on the type of configured token
Returns:
com.ibm.wsspi.security.ltpa.Token
Throws:
com.ibm.websphere.security.auth.InvalidTokenException
com.ibm.websphere.security.auth.TokenExpiredException
createToken
- Token createToken(java.util.Map tokenData)
- throws com.ibm.websphere.security.auth.TokenCreationFailedException
Returns a Token based on the type of configured token
Returns:
com.ibm.wsspi.security.ltpa.Token
Throws:
com.ibm.websphere.security.auth.TokenCreationFailedException