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:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,org.opensaml.messaging.handler.MessageHandler
public class InResponseToSecurityHandler extends org.opensaml.messaging.handler.AbstractMessageHandlerClient-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.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description InResponseToSecurityHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInvoke(org.opensaml.messaging.context.MessageContext messageContext)private StringresolveInboundInResponseTo(org.opensaml.messaging.context.MessageContext messageContext)Resolve the inbound inResponseTo ID.private StringresolveOutboundRequestID(org.opensaml.messaging.context.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
-
-
-
-
Method Detail
-
doInvoke
protected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException- Specified by:
doInvokein classorg.opensaml.messaging.handler.AbstractMessageHandler- Throws:
org.opensaml.messaging.handler.MessageHandlerException
-
resolveOutboundRequestID
private String resolveOutboundRequestID(@Nonnull org.opensaml.messaging.context.MessageContext messageContext)
Resolve the outbound request ID.- Parameters:
messageContext- the message context- Returns:
- the outbound request ID, or null
-
resolveInboundInResponseTo
private String resolveInboundInResponseTo(@Nonnull org.opensaml.messaging.context.MessageContext messageContext)
Resolve the inbound inResponseTo ID.- Parameters:
messageContext- the message context- Returns:
- the inbound inResponseTo, or null
-
-