org.apache.ws.security.processor
Class SAML2TokenProcessor
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAML2TokenProcessor
public SAML2TokenProcessor()
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.