org.picketlink.trust.jbossws.handler
public abstract class AbstractPicketLinkTrustHandler<C extends LogicalMessageContext> extends Object implements SOAPHandler
Abstract base class for the PicketLink Trust Handlers
This class implements directly the SOAPHandler
interface because the GenericSOAPHandler
package name changes between JBossWS versions.
Modifier and Type | Field and Description |
---|---|
protected static String |
AUTHZ_MGR_LOOKUP |
protected static Set<QName> |
headers |
protected static PicketLinkLogger |
logger |
protected static String |
SEC_MGR_LOOKUP |
Constructor and Description |
---|
AbstractPicketLinkTrustHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close(MessageContext context) |
protected Element |
getAssertionFromSubject()
Get the SAML Assertion from the subject
|
Set<QName> |
getHeaders() |
protected String |
getSecurityDomainName(MessageContext msgContext)
Returns the security domain name configured for the deployment.
|
protected Element |
getSecurityHeaderElement(Document document)
Given a
Document , create the WSSE element |
protected javax.servlet.ServletContext |
getServletContext(MessageContext msgContext)
Utility method to get the
ServletContext from the specified MessageContext . |
protected String |
getUsername(Element nameID)
Given the NameID
Element , return the user name |
boolean |
handleFault(MessageContext context) |
protected boolean |
handleInbound(MessageContext msgContext) |
boolean |
handleMessage(MessageContext msgContext)
Handles the incoming message and decides which method should be called:
handleOutbound or handleInbound |
protected boolean |
handleOutbound(MessageContext msgContext) |
protected Object |
lookupJNDI(String str) |
protected void |
trace(MessageContext msgContext) |
protected static final PicketLinkLogger logger
protected static final String SEC_MGR_LOOKUP
protected static final String AUTHZ_MGR_LOOKUP
public Set<QName> getHeaders()
getHeaders
in interface SOAPHandler
protected javax.servlet.ServletContext getServletContext(MessageContext msgContext)
Utility method to get the ServletContext
from the specified MessageContext
.
msgContext
- protected String getSecurityDomainName(MessageContext msgContext) throws ConfigurationException
Returns the security domain name configured for the deployment.
msgContext
- ConfigurationException
- if no security domain is configured.protected Element getSecurityHeaderElement(Document document)
Document
, create the WSSE elementdocument
- protected void trace(MessageContext msgContext)
protected String getUsername(Element nameID)
Element
, return the user namenameID
- protected Element getAssertionFromSubject()
public boolean handleMessage(MessageContext msgContext)
Handles the incoming message and decides which method should be called: handleOutbound
or handleInbound
handleMessage
in interface Handler
msgContext
- protected boolean handleOutbound(MessageContext msgContext)
protected boolean handleInbound(MessageContext msgContext)
public boolean handleFault(MessageContext context)
handleFault
in interface Handler
public void close(MessageContext context)
Copyright © 2013 JBoss Inc.. All Rights Reserved.