com.pingidentity.sts.clientapi.protocol
Class KeyIdentifierTokenReference

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

public class KeyIdentifierTokenReference
extends java.lang.Object
implements SecurityTokenReference

References the token as defined in Web Services Security SAML Token Profile 1.1.


Nested Class Summary
static interface KeyIdentifierTokenReference.IdProvider
          Provides referencing ID.
static class KeyIdentifierTokenReference.SamlIdProvider
          Id Provider for SAML assertion tokens.
 
Field Summary
static java.lang.String SAML11_TOKEN_TYPE
           
static java.lang.String SAML11_VALUE_TYPE
           
static java.lang.String SAML20_TOKEN_TYPE
           
static java.lang.String SAML20_VALUE_TYPE
           
 
Constructor Summary
KeyIdentifierTokenReference(java.lang.String tokenType, java.lang.String valueType, KeyIdentifierTokenReference.IdProvider idProvider)
          Creates KeyIdentifierTokenReference.
 
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

SAML11_VALUE_TYPE

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

SAML11_TOKEN_TYPE

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

SAML20_VALUE_TYPE

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

SAML20_TOKEN_TYPE

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

KeyIdentifierTokenReference

public KeyIdentifierTokenReference(java.lang.String tokenType,
                                   java.lang.String valueType,
                                   KeyIdentifierTokenReference.IdProvider idProvider)
Creates KeyIdentifierTokenReference.

Parameters:
tokenType - the Token Type
valueType - the Value Type
idProvider - provider for referencing ID
Method Detail

referenceToken

public void referenceToken(com.pingidentity.sts.commonutils.xml.easydom.XElement element,
                           org.w3c.dom.Element token)
                    throws STSClientException
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
Throws:
STSClientException - if the reference can't be created

getTokenType

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


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