org.apache.ws.security.processor
Class SAML2TokenProcessor

java.lang.Object
  extended by org.apache.ws.security.processor.SAML2TokenProcessor
All Implemented Interfaces:
Processor

public class SAML2TokenProcessor
extends Object
implements Processor

This class is used to prcess a SAML2.0 Token and validate it.


Constructor Summary
SAML2TokenProcessor()
           
 
Method Summary
 org.opensaml.saml2.core.Assertion buildAssertion(Element elem)
          This method is used to validate a SAML2.0 Token.
 String getId()
          Get the Id of the processor.
 Element getSamlTokenElement()
           
 void handleToken(Element elem, Crypto crypto, Crypto decCrypto, CallbackHandler cb, WSDocInfo wsDocInfo, Vector returnResults, WSSConfig config)
           
 void setSamlTokenElement(Element samlTokenElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAML2TokenProcessor

public SAML2TokenProcessor()
Method Detail

handleToken

public void handleToken(Element elem,
                        Crypto crypto,
                        Crypto decCrypto,
                        CallbackHandler cb,
                        WSDocInfo wsDocInfo,
                        Vector returnResults,
                        WSSConfig config)
                 throws WSSecurityException
Specified by:
handleToken in interface Processor
Throws:
WSSecurityException

buildAssertion

public org.opensaml.saml2.core.Assertion buildAssertion(Element elem)
                                                 throws WSSecurityException
This method is used to validate a SAML2.0 Token. TODO At the moment it only validates by building an assertion similar to the SAMLTokenProcessor.

Parameters:
elem -
Returns:
SAML2.0 Assertion
Throws:
WSSecurityException

getSamlTokenElement

public Element getSamlTokenElement()

setSamlTokenElement

public void setSamlTokenElement(Element samlTokenElement)

getId

public String getId()
Description copied from interface: Processor
Get the Id of the processor.

Specified by:
getId in interface Processor
Returns:
The Id string


Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.