PicketLink Federation Common Server Bindings for JBoss AS 2.1.6.Final-redhat-2

org.picketlink.trust.jbossws.handler
Class AbstractSAML2Handler

java.lang.Object
  extended by org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler
      extended by 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

Field Summary
static String ROLE_KEY_SYS_PROP
           
 
Fields inherited from class org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler
AUTHZ_MGR_LOOKUP, headers, logger, SEC_MGR_LOOKUP
 
Constructor Summary
AbstractSAML2Handler()
           
 
Method Summary
protected  void createSecurityContext(SamlCredential credential, Subject theSubject, Principal principal)
          Subclasses can override this method to customize how the security context is created.
protected  boolean handleInbound(MessageContext msgContext)
          Retrieves the SAML assertion from the SOAP payload and lets invocation go to JAAS for validation.
protected  boolean handleOutbound(MessageContext msgContext)
          It expects a Element assertion as the value of the SAML2Constants.SAML2_ASSERTION_PROPERTY property.
 
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
 

Field Detail

ROLE_KEY_SYS_PROP

public static final String ROLE_KEY_SYS_PROP
See Also:
Constant Field Values
Constructor Detail

AbstractSAML2Handler

public AbstractSAML2Handler()
Method Detail

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

PicketLink Federation Common Server Bindings for JBoss AS 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.