org.picketlink.trust.jbossws.handler
Class AbstractSAML2Handler
java.lang.Object
org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler
org.picketlink.trust.jbossws.handler.AbstractSAML2Handler
- All Implemented Interfaces:
- Handler, SOAPHandler
public abstract class AbstractSAML2Handler
- extends AbstractPicketLinkTrustHandler
Base class for SAML handlers implementations. A default implementation is provided by the SAML2Handler
class.
- Version:
- $Revision: 1 $
- Author:
- Marcus Moyses, Alessio Soldano, Anil Saldhana, Pedro Silva
Methods inherited from class org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler |
close, getAssertionFromSubject, getHeaders, getSecurityDomainName, getSecurityHeaderElement, getServletContext, getUsername, handleFault, handleMessage, lookupJNDI, trace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE_KEY_SYS_PROP
public static final String ROLE_KEY_SYS_PROP
- See Also:
- Constant Field Values
AbstractSAML2Handler
public AbstractSAML2Handler()
handleInbound
protected boolean handleInbound(MessageContext msgContext)
- Retrieves the SAML assertion from the SOAP payload and lets invocation go to JAAS for validation.
- Overrides:
handleInbound
in class AbstractPicketLinkTrustHandler
createSecurityContext
protected void createSecurityContext(SamlCredential credential,
Subject theSubject,
Principal principal)
Subclasses can override this method to customize how the security context is created.
- Parameters:
credential
- theSubject
- principal
-
handleOutbound
protected boolean handleOutbound(MessageContext msgContext)
- It expects a
Element
assertion as the value of the SAML2Constants.SAML2_ASSERTION_PROPERTY
property. This
assertion is then included in the SOAP payload.
- Overrides:
handleOutbound
in class AbstractPicketLinkTrustHandler
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.