public class ReceivedEndpointSecurityHandler extends AbstractMessageHandler
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(String messageDestination,
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, invoke
destroy, doDestroy, initialize, isDestroyed, isInitialized
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.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doInvoke
in class AbstractMessageHandler
messageContext
- 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 String messageDestination, @Nonnull @NotEmpty 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 informationCopyright © 2018. All rights reserved.