com.ibm.wsspi.security.ltpa

Interface TokenFactory


  1. 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
  1. Token
createToken(java.util.Map tokenData)
Returns a Token based on the type of configured token
  1. void
initialize(java.util.Map tokenFactoryMap)
Initializes the token factories with a Map of configuration info.
  1. Token
validateTokenBytes(byte[] encryptedData)
Returns a Token based on the type of configured token

Method Detail

initialize

  1. 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

  1. Token validateTokenBytes(byte[] encryptedData)
  2. throws com.ibm.websphere.security.auth.InvalidTokenException
  3. 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

  1. Token createToken(java.util.Map tokenData)
  2. 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