public class ReceivedEndpointSecurityHandler extends AbstractMessageHandler
| Modifier and Type | Field and Description |
|---|---|
private javax.servlet.http.HttpServletRequest |
httpServletRequest
The HttpServletRequest being processed.
|
private org.slf4j.Logger |
log
Logger.
|
private net.shibboleth.utilities.java.support.net.URIComparator |
uriComparator
The URI comparator to use in performing the validation.
|
| Constructor and Description |
|---|
ReceivedEndpointSecurityHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkEndpointURI(MessageContext<SAMLObject> messageContext,
net.shibboleth.utilities.java.support.net.URIComparator comparator)
Check the validity of the SAML protocol message receiver endpoint against
requirements indicated in the message.
|
protected boolean |
compareEndpointURIs(java.lang.String messageDestination,
java.lang.String receiverEndpoint,
net.shibboleth.utilities.java.support.net.URIComparator comparator)
Compare the message endpoint URI's specified.
|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Get the HTTP servlet request being processed.
|
net.shibboleth.utilities.java.support.net.URIComparator |
getURIComparator()
Get the URI comparator instance to use.
|
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Set the HTTP servlet request being processed.
|
void |
setURIComparator(net.shibboleth.utilities.java.support.net.URIComparator comparator)
Set the URI comparator instance to use.
|
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private org.slf4j.Logger log
@Nonnull private net.shibboleth.utilities.java.support.net.URIComparator uriComparator
@NonnullAfterInit private javax.servlet.http.HttpServletRequest httpServletRequest
public ReceivedEndpointSecurityHandler()
@Nonnull public net.shibboleth.utilities.java.support.net.URIComparator getURIComparator()
public void setURIComparator(@Nonnull
net.shibboleth.utilities.java.support.net.URIComparator comparator)
comparator - the new URI comparator to use@NonnullAfterInit public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public void setHttpServletRequest(@Nonnull
javax.servlet.http.HttpServletRequest request)
request - The to set.protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected void doInvoke(@Nonnull
MessageContext messageContext)
throws MessageHandlerException
doInvoke in class AbstractMessageHandlermessageContext - the message context on which to invoke the handlerMessageHandlerException - if there is an error invoking the handler on the message contextprotected boolean compareEndpointURIs(@Nonnull @NotEmpty
java.lang.String messageDestination,
@Nonnull @NotEmpty
java.lang.String receiverEndpoint,
@Nonnull
net.shibboleth.utilities.java.support.net.URIComparator comparator)
throws net.shibboleth.utilities.java.support.net.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 usenet.shibboleth.utilities.java.support.net.URIException - if one of the URI's to evaluate is invalidprotected void checkEndpointURI(@Nonnull
MessageContext<SAMLObject> messageContext,
@Nonnull
net.shibboleth.utilities.java.support.net.URIComparator comparator)
throws MessageHandlerException
messageContext - current message contextcomparator - the URI comparator instance to use, if null an internal default will be usedMessageHandlerException - 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 information