com.sun.identity.wss.security
Interface SecurityToken


public interface SecurityToken

This 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 SecurityTokenSpec for generating the Security Tokens.


Field Summary
static String LIBERTY_ASSERTION_TOKEN
          The URI to identify the Liberty SAML Security Token
static String WSS_FAM_SSO_TOKEN
          The URI is to identify the OpenSSO security token.
static String WSS_KERBEROS_TOKEN
          The URI to identify the WS-Security Kerberos Security Token
static String WSS_SAML_TOKEN
          The URI to identify the WS-Security SAML Security Token.
static String WSS_SAML2_TOKEN
          The URI to identify the WS-Security SAML2 Security Token.
static String WSS_USERNAME_TOKEN
          The URI to identify the WS-Security UserName Security Token
static String WSS_X509_TOKEN
          The URI to identify the WS-Security X509 Security Token
 
Method Summary
 String getTokenType()
          Returns the security token type.
 Element toDocumentElement()
          Converts the Security Token into DOM Object.
 

Field Detail

WSS_SAML_TOKEN

static final String WSS_SAML_TOKEN
The URI to identify the WS-Security SAML Security Token.

See Also:
Constant Field Values

WSS_SAML2_TOKEN

static final String WSS_SAML2_TOKEN
The URI to identify the WS-Security SAML2 Security Token.

See Also:
Constant Field Values

WSS_X509_TOKEN

static final String WSS_X509_TOKEN
The URI to identify the WS-Security X509 Security Token

See Also:
Constant Field Values

WSS_USERNAME_TOKEN

static final String WSS_USERNAME_TOKEN
The URI to identify the WS-Security UserName Security Token

See Also:
Constant Field Values

LIBERTY_ASSERTION_TOKEN

static final String LIBERTY_ASSERTION_TOKEN
The URI to identify the Liberty SAML Security Token

See Also:
Constant Field Values

WSS_KERBEROS_TOKEN

static final String WSS_KERBEROS_TOKEN
The URI to identify the WS-Security Kerberos Security Token

See Also:
Constant Field Values

WSS_FAM_SSO_TOKEN

static final String WSS_FAM_SSO_TOKEN
The URI is to identify the OpenSSO security token. The OpenSSO security token contains SSOToken.

See Also:
Constant Field Values
Method Detail

getTokenType

String getTokenType()
Returns the security token type. The possible values are SecurityToken.WSS_SAML_TOKEN, SecurityToken.WSS_X509_TOKEN SecurityToken.WSS_USERNAME_TOKEN SecurityToken.WSS_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.