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 PicketLinkLogger |
logger |
protected static String |
SEC_MGR_LOOKUP |
Constructor and Description |
---|
AbstractPicketLinkTrustHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close(MessageContext context)
Called at the conclusion of a message exchange pattern just prior to
the JAX-WS runtime disptaching a message, fault or exception.
|
protected Element |
getAssertionFromSubject()
Get the SAML Assertion from the subject
|
Set<QName> |
getHeaders()
Gets the header blocks that can be processed by this Handler
instance.
|
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 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)
The
handleFault method is invoked for fault message
processing. |
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()
SOAPHandler
getHeaders
in interface SOAPHandler
QNames
of header blocks processed by this
handler instance. QName
is the qualified
name of the outermost element of the Header block.protected 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)
Handler
handleFault
method is invoked for fault message
processing. Refer to the description of the handler
framework in the JAX-WS specification for full details.handleFault
in interface Handler
context
- the message contexttrue
to continue
processing.false
to block
processing.public void close(MessageContext context)
Handler
Copyright © 2016 JBoss by Red Hat. All rights reserved.