com.pingidentity.sts.clientapi.tokens
Interface TokenHandler

All Known Implementing Classes:
Saml11TokenHandler, Saml20TokenHandler

public interface TokenHandler

Interface to define behaviors for parsing Security Tokens.


Method Summary
 Token getToken(org.w3c.dom.Element element)
          Checks if the Element object instance can be parsed to a Token object instance.
 

Method Detail

getToken

Token getToken(org.w3c.dom.Element element)
               throws SecurityTokenException
Checks if the Element object instance can be parsed to a Token object instance. If it can be parsed, the handler creates a Token and initializes it with received XML data.

Parameters:
element - token Element
Returns:
Token object instance initialized with received XML data or null otherwise.
Throws:
SecurityTokenException - if an exception occurs during parsing.


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