public class StandardSecurityToken extends Object implements SecurityToken
Standard implementation of the SecurityToken interface. This implementation stores the issued token as an
Element. The token providers are responsible for marshaling the security token into an Element instance
because the security token marshaling process falls out of the scope of the STS (the STS only deals with WS-Trust classes and
doesn't know how to marshal each specific token type).
| Constructor and Description |
|---|
StandardSecurityToken(String tokenType,
Element token,
String tokenID)
Creates an instance of
StandardSecurityToken with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
String |
getTokenID()
Obtains the security token unique identifier.
|
String |
getTokenType()
Obtains the type of the security token.
|
Object |
getTokenValue()
Obtains the value of the security token.
|
public StandardSecurityToken(String tokenType, Element token, String tokenID)
Creates an instance of StandardSecurityToken with the specified parameters.
tokenType - a String representing the type of the security token. This is usually the same type as specified
in the WS-Trust request message.token - the security token in its Element form (i.e. the marshaled security token).tokenID - a String representing the id of the security token.public String getTokenType()
SecurityTokenObtains the type of the security token.
getTokenType in interface SecurityTokenString representing the security token type.public Object getTokenValue()
SecurityTokenObtains the value of the security token.
getTokenValue in interface SecurityTokenObject representing the security token value.public String getTokenID()
SecurityTokenObtains the security token unique identifier.
getTokenID in interface SecurityTokenString representing the token id.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.