Package com.sun.identity.wss.sts
Class STSClientUserToken
- java.lang.Object
-
- com.sun.identity.wss.sts.STSClientUserToken
-
- All Implemented Interfaces:
ClientUserToken,com.sun.xml.ws.security.Token
public class STSClientUserToken extends Object implements ClientUserToken
This class implements ClientUserToken for on behalf of token that will be used to pass end user OpenAM SSO Token to the STS service.
-
-
Constructor Summary
Constructors Constructor Description STSClientUserToken()Creates a new instance of STSClientUserTokenSTSClientUserToken(Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppTokenID()Returns the Application/Client token value.StringgetPrincipalName()Returns the principal name that the client user token carries.StringgetTokenId()ElementgetTokenValue()StringgetType()voidinit(Object credential)Initializes client user token.voidparse(Element element)Parses the custom token element.StringtoString()Returns thejava.lang.Stringrepresentation of this client user token.
-
-
-
Constructor Detail
-
STSClientUserToken
public STSClientUserToken()
Creates a new instance of STSClientUserToken
-
STSClientUserToken
public STSClientUserToken(Element element) throws FAMSTSException
- Throws:
FAMSTSException
-
-
Method Detail
-
init
public void init(Object credential) throws FAMSTSException
Description copied from interface:ClientUserTokenInitializes client user token.- Specified by:
initin interfaceClientUserToken- Parameters:
credential- credential object to initialize the user token- Throws:
FAMSTSException
-
parse
public void parse(Element element) throws FAMSTSException
Description copied from interface:ClientUserTokenParses the custom token element. This method is used at the receiving end (STS server side).- Specified by:
parsein interfaceClientUserToken- Parameters:
element- the custom token element- Throws:
FAMSTSException
-
getTokenValue
public Element getTokenValue()
- Specified by:
getTokenValuein interfacecom.sun.xml.ws.security.Token
-
getTokenId
public String getTokenId()
-
getPrincipalName
public String getPrincipalName() throws FAMSTSException
Description copied from interface:ClientUserTokenReturns the principal name that the client user token carries.- Specified by:
getPrincipalNamein interfaceClientUserToken- Returns:
- the principal name that the client user token carries
- Throws:
FAMSTSException
-
toString
public String toString()
Description copied from interface:ClientUserTokenReturns thejava.lang.Stringrepresentation of this client user token.- Specified by:
toStringin interfaceClientUserToken- Overrides:
toStringin classObject- Returns:
- the string format for this client user token.
-
getType
public String getType()
- Specified by:
getTypein interfacecom.sun.xml.ws.security.Token
-
getAppTokenID
public String getAppTokenID()
Returns the Application/Client token value.- Returns:
- the Application/Client token value.
-
-