Class InResponseToSecurityHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.saml.common.binding.security.impl.InResponseToSecurityHandler
-
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,MessageHandler
public class InResponseToSecurityHandler extends AbstractMessageHandler
Client-side message handler for validating that the inbound SAML response inResponseTo ID matches the corresponding outbound request ID.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
log
Logger.
-
Constructor Summary
Constructors Constructor Description InResponseToSecurityHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doInvoke(MessageContext messageContext)
private String
resolveInboundInResponseTo(MessageContext messageContext)
Resolve the inbound inResponseTo ID.private String
resolveOutboundRequestID(MessageContext messageContext)
Resolve the outbound request ID.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Method Detail
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
- Specified by:
doInvoke
in classAbstractMessageHandler
- Throws:
MessageHandlerException
-
resolveOutboundRequestID
private String resolveOutboundRequestID(@Nonnull MessageContext messageContext)
Resolve the outbound request ID.- Parameters:
messageContext
- the message context- Returns:
- the outbound request ID, or null
-
resolveInboundInResponseTo
private String resolveInboundInResponseTo(@Nonnull MessageContext messageContext)
Resolve the inbound inResponseTo ID.- Parameters:
messageContext
- the message context- Returns:
- the inbound inResponseTo, or null
-
-