Package com.sun.identity.wss.security
Interface SecurityToken
-
- All Known Implementing Classes:
AssertionToken,BinarySecurityToken,FAMSecurityToken,SAML2Token,UserNameToken
public interface SecurityTokenThis interface represents WS-Security token that can be inserted into or extracted from SOAP messages headers for Web Services Security transactions.Each Security Token must need to implement this interface along with
SecurityTokenSpecfor generating the Security Tokens.
-
-
Field Summary
Fields Modifier and Type Field Description static StringLIBERTY_ASSERTION_TOKENTheURIto identify the Liberty SAML Security Tokenstatic StringWSS_FAM_SSO_TOKENTheURIis to identify the OpenAM security token.static StringWSS_KERBEROS_TOKENTheURIto identify the WS-Security Kerberos Security Tokenstatic StringWSS_SAML_TOKENTheURIto identify the WS-Security SAML Security Token.static StringWSS_SAML2_TOKENTheURIto identify the WS-Security SAML2 Security Token.static StringWSS_USERNAME_TOKENTheURIto identify the WS-Security UserName Security Tokenstatic StringWSS_X509_TOKENTheURIto identify the WS-Security X509 Security Token
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetTokenType()Returns the security token type.ElementtoDocumentElement()Converts the Security Token into DOM Object.
-
-
-
Field Detail
-
WSS_SAML_TOKEN
static final String WSS_SAML_TOKEN
TheURIto identify the WS-Security SAML Security Token.- See Also:
- Constant Field Values
-
WSS_SAML2_TOKEN
static final String WSS_SAML2_TOKEN
TheURIto identify the WS-Security SAML2 Security Token.- See Also:
- Constant Field Values
-
WSS_X509_TOKEN
static final String WSS_X509_TOKEN
TheURIto identify the WS-Security X509 Security Token- See Also:
- Constant Field Values
-
WSS_USERNAME_TOKEN
static final String WSS_USERNAME_TOKEN
TheURIto identify the WS-Security UserName Security Token- See Also:
- Constant Field Values
-
LIBERTY_ASSERTION_TOKEN
static final String LIBERTY_ASSERTION_TOKEN
TheURIto identify the Liberty SAML Security Token- See Also:
- Constant Field Values
-
WSS_KERBEROS_TOKEN
static final String WSS_KERBEROS_TOKEN
TheURIto identify the WS-Security Kerberos Security Token- See Also:
- Constant Field Values
-
WSS_FAM_SSO_TOKEN
static final String WSS_FAM_SSO_TOKEN
TheURIis to identify the OpenAM security token. The OpenAM security token contains SSOToken.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTokenType
String getTokenType()
Returns the security token type. The possible values areWSS_SAML_TOKEN,WSS_X509_TOKENWSS_USERNAME_TOKENWSS_SAML2_TOKEN
-
toDocumentElement
Element toDocumentElement() throws SecurityException
Converts the Security Token into DOM Object.- Returns:
- the DOM Document Element.
- Throws:
SecurityException- if any failure is occured.
-
-