com.sun.identity.wss.security
インタフェース 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.


メソッドの概要
 SecurityToken getSecurityToken()
          Returns the SecurityToken for the WS-Security.
 void init(SecurityTokenSpec tokenSpec)
          Initializes the TokenProvider to generate the necessary Security Token.
 

メソッドの詳細

init

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

パラメータ:
tokenSpec - the token specification required to generate the Security Token.

getSecurityToken

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

戻り値:
the Security Token.
例外:
SecurityException - if unable to generate the Security Token.