Package com.sun.identity.wss.security
Class FAMSecurityToken
- java.lang.Object
-
- com.sun.identity.wss.security.FAMSecurityToken
-
- All Implemented Interfaces:
SecurityToken
public class FAMSecurityToken extends Object implements SecurityToken
The classFAMSecurityTokenrepresents Federation OpenAM Security Token using OpenAM Single Sign-on Token.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.wss.security.SecurityToken
LIBERTY_ASSERTION_TOKEN, WSS_FAM_SSO_TOKEN, WSS_KERBEROS_TOKEN, WSS_SAML_TOKEN, WSS_SAML2_TOKEN, WSS_USERNAME_TOKEN, WSS_X509_TOKEN
-
-
Constructor Summary
Constructors Constructor Description FAMSecurityToken(SSOToken ssoToken)Constructor for FAMSecurityTokenFAMSecurityToken(Element element)Constructor that uses DOM Element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppTokenID()Returns the Application/Client token value.StringgetTokenID()Returns the security token value.StringgetTokenType()Returns the security token type.ElementtoDocumentElement()Convert the security token into DOM Object.
-
-
-
Constructor Detail
-
FAMSecurityToken
public FAMSecurityToken(SSOToken ssoToken) throws SecurityException
Constructor for FAMSecurityToken- Parameters:
ssoToken- Single Sign on token of the subject.- Throws:
SecurityException
-
FAMSecurityToken
public FAMSecurityToken(Element element) throws SecurityException
Constructor that uses DOM Element- Parameters:
element- the DOM representation of security token.- Throws:
SecurityException
-
-
Method Detail
-
getTokenType
public String getTokenType()
Returns the security token type.- Specified by:
getTokenTypein interfaceSecurityToken- Returns:
- the security token type.
-
getTokenID
public String getTokenID()
Returns the security token value.- Returns:
- the security token value.
-
getAppTokenID
public String getAppTokenID()
Returns the Application/Client token value.- Returns:
- the Application/Client token value.
-
toDocumentElement
public Element toDocumentElement() throws SecurityException
Convert the security token into DOM Object.- Specified by:
toDocumentElementin interfaceSecurityToken- Returns:
- the DOM Document Element.
- Throws:
SecurityException- if any failure is occured.
-
-