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()
SecurityToken
Obtains the type of the security token.
getTokenType
in interface SecurityToken
String
representing the security token type.public Object getTokenValue()
SecurityToken
Obtains the value of the security token.
getTokenValue
in interface SecurityToken
Object
representing the security token value.public String getTokenID()
SecurityToken
Obtains the security token unique identifier.
getTokenID
in interface SecurityToken
String
representing the token id.Copyright © 2018 JBoss by Red Hat. All rights reserved.