Package com.sun.identity.wss.security
Class AMTokenProvider
- java.lang.Object
-
- com.sun.identity.wss.security.AMTokenProvider
-
- All Implemented Interfaces:
TokenProvider
public class AMTokenProvider extends Object implements TokenProvider
This class implements theTokenProviderinterface to generate the WS-Security tokens.This token provider is the default implementation which uses the default
XMLSignatureManagerand theKeyProviderfor token generation.
-
-
Constructor Summary
Constructors Constructor Description AMTokenProvider(SSOToken token)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityTokengetSecurityToken()Returns theSecurityTokenfor the WS-Security.voidinit(SecurityTokenSpec tokenSpec)Initialize theAMTokenProviderto generate the necessary security token.
-
-
-
Constructor Detail
-
AMTokenProvider
public AMTokenProvider(SSOToken token) throws SSOException
Default constructor- Parameters:
token- Single sign-on token- Throws:
SSOException- if the single sign on token is invalid.
-
-
Method Detail
-
init
public void init(SecurityTokenSpec tokenSpec)
Initialize theAMTokenProviderto generate the necessary security token.- Specified by:
initin interfaceTokenProvider- Parameters:
tokenSpec- the token specification required to generate the security token.
-
getSecurityToken
public SecurityToken getSecurityToken() throws SecurityException
Returns theSecurityTokenfor the WS-Security.- Specified by:
getSecurityTokenin interfaceTokenProvider- Returns:
- the security token for the initialzed security token.
- Throws:
SecurityException- if unable to generate the security token for the initialized token specification.
-
-