com.pingidentity.sts.clientapi.protocol
Class SimpleTokenReference

java.lang.Object
  extended by com.pingidentity.sts.clientapi.protocol.SimpleTokenReference
All Implemented Interfaces:
SecurityTokenReference

public class SimpleTokenReference
extends java.lang.Object
implements SecurityTokenReference

SimpleTokenReference references tokens as defined in the Web Services Security UsernameToken Profile 1.1 and Web Services Security X.509 Certificate Token Profile 1.1. Also defines reference types for other token non-WSS profiled token types.


Field Summary
static java.lang.String BINARY_TOKEN_VALUE_TYPE
           
static java.lang.String ID_ATTRIBUTE
           
static java.lang.String KERBEROS_TOKEN_VALUE_TYPE
           
static java.lang.String OBSSO_TOKEN_VALUE_TYPE
           
static java.lang.String OPENTOKEN_TOKEN_VALUE_TYPE
           
static java.lang.String REFERENCE_ELEMENT
           
static java.lang.String SECURITY_TOKEN_REFERENCE_ELEMENT
           
static java.lang.String SITEMIDNER_TOKEN_VALUE_TYPE
           
static java.lang.String URI_ATTRIBUTE
           
static java.lang.String USERNAME_TOKEN_VALUE_TYPE
           
static java.lang.String VALUE_TYPE_ATTRIBUTE
           
static java.lang.String X509V3_TOKEN_VALUE_TYPE
           
 
Constructor Summary
SimpleTokenReference()
          Creates SimpleTokenReference.
SimpleTokenReference(java.lang.String tokenType)
          Creates SimpleTokenReference.
 
Method Summary
 java.lang.String getTokenType()
           
 void referenceToken(com.pingidentity.sts.commonutils.xml.easydom.XElement element, org.w3c.dom.Element token)
          Adds the SecurityTokenReference Element to the element that references the token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME_TOKEN_VALUE_TYPE

public static final java.lang.String USERNAME_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

BINARY_TOKEN_VALUE_TYPE

public static final java.lang.String BINARY_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

X509V3_TOKEN_VALUE_TYPE

public static final java.lang.String X509V3_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

KERBEROS_TOKEN_VALUE_TYPE

public static final java.lang.String KERBEROS_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

SITEMIDNER_TOKEN_VALUE_TYPE

public static final java.lang.String SITEMIDNER_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

OPENTOKEN_TOKEN_VALUE_TYPE

public static final java.lang.String OPENTOKEN_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

OBSSO_TOKEN_VALUE_TYPE

public static final java.lang.String OBSSO_TOKEN_VALUE_TYPE
See Also:
Constant Field Values

SECURITY_TOKEN_REFERENCE_ELEMENT

public static final java.lang.String SECURITY_TOKEN_REFERENCE_ELEMENT
See Also:
Constant Field Values

REFERENCE_ELEMENT

public static final java.lang.String REFERENCE_ELEMENT
See Also:
Constant Field Values

ID_ATTRIBUTE

public static final java.lang.String ID_ATTRIBUTE
See Also:
Constant Field Values

URI_ATTRIBUTE

public static final java.lang.String URI_ATTRIBUTE
See Also:
Constant Field Values

VALUE_TYPE_ATTRIBUTE

public static final java.lang.String VALUE_TYPE_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

SimpleTokenReference

public SimpleTokenReference(java.lang.String tokenType)
Creates SimpleTokenReference.

Parameters:
tokenType - the ValueType attribute. The ValueType should be the same as returned by com.pingidentity.sts.model.SecurityToken#getTokenType method on the server.

SimpleTokenReference

public SimpleTokenReference()
Creates SimpleTokenReference. ValueType attribute is retreived from the token if possible.

Method Detail

referenceToken

public void referenceToken(com.pingidentity.sts.commonutils.xml.easydom.XElement element,
                           org.w3c.dom.Element token)
Description copied from interface: SecurityTokenReference
Adds the SecurityTokenReference Element to the element that references the token

Specified by:
referenceToken in interface SecurityTokenReference
Parameters:
element - the element that contains SecurityTokenReference
token - the token that is referred to

getTokenType

public java.lang.String getTokenType()
Specified by:
getTokenType in interface SecurityTokenReference


Copyright © 2006-2009 Ping Identity Corporation. All Rights Reserved.