com.pingidentity.sts.clientapi.tokens
Interface Token

All Known Implementing Classes:
BinaryToken, EncryptedSaml20Token, Saml11Token, Saml20Token, SamlToken, UsernameToken, X509CertificateToken

public interface Token

Base interface for tokens which defines parsing behavior and provides access to the underlying XML data structure.


Method Summary
 org.w3c.dom.Element getRoot()
          Retrieves the raw token data as an XML Element.
 java.lang.String getSubjectId()
          Retrieves the principal subject identfier of the token.
 void parse(org.w3c.dom.Element root)
          Parses the provided XML Element into a token.
 

Method Detail

getSubjectId

java.lang.String getSubjectId()
Retrieves the principal subject identfier of the token.

Returns:
subject as String

getRoot

org.w3c.dom.Element getRoot()
                            throws SecurityTokenException
Retrieves the raw token data as an XML Element.

Returns:
Throws:
SecurityTokenException

parse

void parse(org.w3c.dom.Element root)
           throws SecurityTokenException
Parses the provided XML Element into a token. If a parsing error occurs, a SecurityTokenException is thrown.

Parameters:
root -
Throws:
SecurityTokenException


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