public class AMTokenProvider extends Object implements TokenProvider
TokenProvider
interface to
generate the WS-Security tokens.
This token provider is the default implementation which uses
the default XMLSignatureManager
and
the KeyProvider
for token generation.
Constructor and Description |
---|
AMTokenProvider(SSOToken token)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
SecurityToken |
getSecurityToken()
Returns the
SecurityToken for the WS-Security. |
void |
init(SecurityTokenSpec tokenSpec)
Initialize the
AMTokenProvider to generate the necessary
security token. |
public AMTokenProvider(SSOToken token) throws SSOException
token
- Single sign-on tokenSSOException
- if the single sign on token is invalid.public void init(SecurityTokenSpec tokenSpec)
AMTokenProvider
to generate the necessary
security token.init
in interface TokenProvider
tokenSpec
- the token specification required to generate the
security token.public SecurityToken getSecurityToken() throws SecurityException
SecurityToken
for the WS-Security.getSecurityToken
in interface TokenProvider
SecurityException
- if unable to generate the security token
for the initialized token specification.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.