PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.wstrust
Class StandardSecurityToken

java.lang.Object
  extended by org.picketlink.identity.federation.core.wstrust.StandardSecurityToken
All Implemented Interfaces:
SecurityToken

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).

Author:
Stefan Guilhen

Constructor Summary
StandardSecurityToken(String tokenType, Element token, String tokenID)
           Creates an instance of StandardSecurityToken with the specified parameters.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardSecurityToken

public StandardSecurityToken(String tokenType,
                             Element token,
                             String tokenID)

Creates an instance of StandardSecurityToken with the specified parameters.

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.
Method Detail

getTokenType

public String getTokenType()
Description copied from interface: SecurityToken

Obtains the type of the security token.

Specified by:
getTokenType in interface SecurityToken
Returns:
a String representing the security token type.

getTokenValue

public Object getTokenValue()
Description copied from interface: SecurityToken

Obtains the value of the security token.

Specified by:
getTokenValue in interface SecurityToken
Returns:
an Object representing the security token value.

getTokenID

public String getTokenID()
Description copied from interface: SecurityToken

Obtains the security token unique identifier.

Specified by:
getTokenID in interface SecurityToken
Returns:
a String representing the token id.

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.