public class ReceivedEndpointSecurityHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
Constructor and Description |
---|
ReceivedEndpointSecurityHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkEndpointURI(org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext,
URIComparator comparator)
Check the validity of the SAML protocol message receiver endpoint against
requirements indicated in the message.
|
protected boolean |
compareEndpointURIs(String messageDestination,
String receiverEndpoint,
URIComparator comparator)
Compare the message endpoint URI's specified.
|
protected void |
doInitialize()
Performs the initialization of the component.
|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
HttpServletRequest |
getHttpServletRequest()
Get the HTTP servlet request being processed.
|
URIComparator |
getURIComparator()
Get the URI comparator instance to use.
|
void |
setHttpServletRequest(HttpServletRequest request)
Set the HTTP servlet request being processed.
|
void |
setURIComparator(URIComparator comparator)
Set the URI comparator instance to use.
|
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invoke
destroy, doDestroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
public ReceivedEndpointSecurityHandler()
@Nonnull public URIComparator getURIComparator()
public void setURIComparator(@Nonnull URIComparator comparator)
comparator
- the new URI comparator to use@NonnullAfterInit public HttpServletRequest getHttpServletRequest()
public void setHttpServletRequest(@Nonnull HttpServletRequest request)
request
- The to set.protected void doInitialize() throws ComponentInitializationException
doInitialize
in class AbstractInitializableComponent
ComponentInitializationException
- thrown if there is a problem initializing the componentprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
protected boolean compareEndpointURIs(@Nonnull @NotEmpty String messageDestination, @Nonnull @NotEmpty String receiverEndpoint, @Nonnull URIComparator comparator) throws URIException
The comparison is performed using the specified instance of URIComparator
.
messageDestination
- the intended message destination endpoint URIreceiverEndpoint
- the endpoint URI at which the message was receivedcomparator
- the comparator instance to useURIException
- if one of the URI's to evaluate is invalidprotected void checkEndpointURI(@Nonnull org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext, @Nonnull URIComparator comparator) throws org.opensaml.messaging.handler.MessageHandlerException
messageContext
- current message contextcomparator
- the URI comparator instance to use, if null an internal default will be usedorg.opensaml.messaging.handler.MessageHandlerException
- thrown if the message was received at an endpoint consistent
with message requirements, or if there is a problem decoding and processing
the message Destination or receiver endpoint informationCopyright © 2016 JBoss by Red Hat. All rights reserved.