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 org.jboss.wsf.common.handler.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 org.picketlink.common.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 org.picketlink.common.PicketLinkLogger logger
protected static final String SEC_MGR_LOOKUP
protected static final String AUTHZ_MGR_LOOKUP
public Set<QName> getHeaders()
getHeaders in interface SOAPHandlerprotected javax.servlet.ServletContext getServletContext(MessageContext msgContext)
Utility method to get the ServletContext from the specified MessageContext.
msgContext - protected String getSecurityDomainName(MessageContext msgContext) throws org.picketlink.common.exceptions.ConfigurationException
Returns the security domain name configured for the deployment.
msgContext - org.picketlink.common.exceptions.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 HandlermsgContext - protected boolean handleOutbound(MessageContext msgContext)
protected boolean handleInbound(MessageContext msgContext)
public boolean handleFault(MessageContext context)
handleFault in interface Handlerpublic void close(MessageContext context)
Copyright © 2013. All Rights Reserved.