com.sun.identity.wss.security
Interface SecurityToken


public interface SecurityToken

This interface represents ws-security token that can be inserted into web services security header.

Each security token must need to implement this interface along with SecurityTokenSpec for generating the security tokens.


Field Summary
static String LIBERTY_ASSERTION_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()
          Convert 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
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
Convert the security token into DOM Object.

Returns:
the DOM Document Element.
Throws:
SecurityException - if any failure is occured.