com.sun.identity.wss.security
クラス SecurityTokenFactory

java.lang.Object
  上位を拡張 com.sun.identity.wss.security.SecurityTokenFactory

public class SecurityTokenFactory
extends Object

This class SecurityTokenFactory represents a factory class to create WS-Security tokens. This class uses pluggable TokenProviders to generate the WS-Security tokens. If the TokenProvider is not specified, this class will use the default implementation of the Token Provider.


コンストラクタの概要
protected SecurityTokenFactory(TokenProvider provider)
          Protected constructor.
 
メソッドの概要
static SecurityTokenFactory getInstance(SSOToken credential)
          Returns the Security Token factory instance.
static SecurityTokenFactory getInstance(TokenProvider provider)
          Returns the Security Token factory instance.
 SecurityToken getSecurityToken(SecurityTokenSpec tokenSpec)
          Returns / Creates a security token from the security token specificaion.
 TokenProvider getTokenProvider()
          Returns the provider of this Security Token factory object.
 

コンストラクタの詳細

SecurityTokenFactory

protected SecurityTokenFactory(TokenProvider provider)
Protected constructor.

メソッドの詳細

getInstance

public static SecurityTokenFactory getInstance(SSOToken credential)
                                        throws SecurityException
Returns the Security Token factory instance. The default TokenProvider is used to generate the WS-Security tokens.

パラメータ:
credential - The credential of the authenticated subject.
例外:
SecurityException - if unable to create the the security token factory.

getInstance

public static SecurityTokenFactory getInstance(TokenProvider provider)
                                        throws SecurityException
Returns the Security Token factory instance.

パラメータ:
provider - the token provider implementation.
例外:
SecurityException - if unable to create the the security token factory.

getSecurityToken

public SecurityToken getSecurityToken(SecurityTokenSpec tokenSpec)
                               throws SecurityException
Returns / Creates a security token from the security token specificaion.

パラメータ:
tokenSpec - Security Token Specification that is needed to generate the security tokens.
戻り値:
SecurityToken the security token.
例外:
SecurityException - if the security token could not be generated.

getTokenProvider

public TokenProvider getTokenProvider()
Returns the provider of this Security Token factory object.

戻り値:
the token provider.