com.sun.identity.wss.security
Interface TokenProvider


public interface TokenProvider

The interface TokenProvider represents a Security Token provider for generating the Security Tokens.

Each token provider implementation must implement this interface to generate the SecurityTokens that may be attached to the Web services security (SOAP) headers.


Method Summary
 SecurityToken getSecurityToken()
          Returns the SecurityToken for the WS-Security.
 void init(SecurityTokenSpec tokenSpec)
          Initializes the TokenProvider to generate the necessary Security Token.
 

Method Detail

init

void init(SecurityTokenSpec tokenSpec)
Initializes the TokenProvider to generate the necessary Security Token.

Parameters:
tokenSpec - the token specification required to generate the Security Token.

getSecurityToken

SecurityToken getSecurityToken()
                               throws SecurityException
Returns the SecurityToken for the WS-Security.

Returns:
the Security Token.
Throws:
SecurityException - if unable to generate the Security Token.