|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.identity.wss.security.SecurityTokenFactory
This class SecurityTokenFactory represents a factory class to
create WSS Security tokens.
This class uses pluggable TokenProviders to generate the
WSS security tokens. If the TokenProvider is
not specified, this class will use the default implementation of the
Token Provider.
| Method Summary | |
static SecurityTokenFactory |
getInstance(SSOToken credential)
Returns the security token factory instance. |
static SecurityTokenFactory |
getInstance(com.sun.identity.wss.security.TokenProvider provider)
Returns the security token factory instance. |
SecurityToken |
getSecurityToken(SecurityTokenSpec tokenSpec)
Creates a security token from the security token specificaion. |
com.sun.identity.wss.security.TokenProvider |
getTokenProvider()
Returns the provider of this security token factory object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SecurityTokenFactory getInstance(SSOToken credential)
throws com.sun.identity.wss.security.SecurityException
TokenProvider is used to generate the
WSS security tokens.
credential - The credential of the authenticated subject.
java.lang.SecurityException - if unable to create the
the security token factory.
com.sun.identity.wss.security.SecurityException
public static SecurityTokenFactory getInstance(com.sun.identity.wss.security.TokenProvider provider)
throws com.sun.identity.wss.security.SecurityException
provider - the token provider implementation.
java.lang.SecurityException - if unable to create the
the security token factory.
com.sun.identity.wss.security.SecurityException
public SecurityToken getSecurityToken(SecurityTokenSpec tokenSpec)
throws com.sun.identity.wss.security.SecurityException
tokenSpec - Security Token Specification that is needed to
generate the security tokens.
java.lang.SecurityException - if the security token could not be
generated.
com.sun.identity.wss.security.SecurityExceptionpublic com.sun.identity.wss.security.TokenProvider getTokenProvider()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||