public class ReceivedEndpointSecurityHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
| Modifier and Type | Field and Description |
|---|---|
private javax.servlet.http.HttpServletRequest |
httpServletRequest
The HttpServletRequest being processed.
|
private org.slf4j.Logger |
log
Logger.
|
private 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(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() |
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Get the HTTP servlet request being processed.
|
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(URIComparator comparator)
Set the URI comparator instance to use.
|
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private org.slf4j.Logger log
@Nonnull private URIComparator uriComparator
@NonnullAfterInit private javax.servlet.http.HttpServletRequest httpServletRequest
public ReceivedEndpointSecurityHandler()
@Nonnull public URIComparator getURIComparator()
public void setURIComparator(@Nonnull 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 ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionprotected 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 © 1999–2019 Shibboleth Consortium. All rights reserved.