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

Method Detail

initialize

public 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

public Token validateTokenBytes(byte[] encryptedData)
                         throws InvalidTokenException,
                                TokenExpiredException
Returns a Token based on the type of configured token

Returns:
com.ibm.wsspi.security.ltpa.Token
Throws:
InvalidTokenException
TokenExpiredException

createToken

public Token createToken(java.util.Map tokenData)
                  throws TokenCreationFailedException
Returns a Token based on the type of configured token

Returns:
com.ibm.wsspi.security.ltpa.Token
Throws:
TokenCreationFailedException