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 java.lang.String WSS_SAML_TOKEN
          The URI to identify the WS-Security SAML Security Token.
static java.lang.String WSS_USERNAME_TOKEN
          The URI to identify the WS-Security UserName Security Token
static java.lang.String WSS_X509_TOKEN
          The URI to identify the WS-Security X509 Security Token
 
Method Summary
 java.lang.String getTokenType()
          Returns the security token type.
 org.w3c.dom.Element toDocumentElement()
          Convert the security token into DOM Object.
 

Field Detail

WSS_SAML_TOKEN

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

See Also:
Constant Field Values

WSS_X509_TOKEN

public static final java.lang.String WSS_X509_TOKEN
The URI to identify the WS-Security X509 Security Token

See Also:
Constant Field Values

WSS_USERNAME_TOKEN

public static final java.lang.String WSS_USERNAME_TOKEN
The URI to identify the WS-Security UserName Security Token

See Also:
Constant Field Values
Method Detail

getTokenType

public java.lang.String getTokenType()
Returns the security token type. The possible values are WSS_SAML_TOKEN, WSS_X509_TOKEN WSS_USERNAME_TOKEN


toDocumentElement

public org.w3c.dom.Element toDocumentElement()
                                      throws com.sun.identity.wss.security.SecurityException
Convert the security token into DOM Object.

Returns:
the DOM Document Element.
Throws:
java.lang.SecurityException - if any failure is occured.
com.sun.identity.wss.security.SecurityException


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.