Class AbstractMessageChannelSecurity
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.messaging.handler.impl.AbstractMessageChannelSecurity
-
- 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
- Direct Known Subclasses:
StaticMessageChannelSecurity,URLEvaluatingMessageChannelSecurity
public abstract class AbstractMessageChannelSecurity extends org.opensaml.messaging.handler.AbstractMessageHandlerAbstract base class for message handlers which populate aMessageChannelSecurityContexton aBaseContext, where the latter is located using a lookup strategy.
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.messaging.context.BaseContextparentContextParent for eventual context.private Function<org.opensaml.messaging.context.MessageContext,org.opensaml.messaging.context.BaseContext>parentContextLookupStrategyStrategy used to look up the parentBaseContexton which theMessageChannelSecurityContextwill be populated.
-
Constructor Summary
Constructors Constructor Description AbstractMessageChannelSecurity()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoPreInvoke(org.opensaml.messaging.context.MessageContext messageContext)protected org.opensaml.messaging.context.BaseContextgetParentContext()Get the parent context on which theMessageChannelSecurityContextwill be populated.voidsetParentContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,org.opensaml.messaging.context.BaseContext> strategy)Set the strategy used to look up the parentBaseContexton which theMessageChannelSecurityContextwill be populated.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doInvoke, doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
parentContextLookupStrategy
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,org.opensaml.messaging.context.BaseContext> parentContextLookupStrategy
Strategy used to look up the parentBaseContexton which theMessageChannelSecurityContextwill be populated.
-
parentContext
@Nullable private org.opensaml.messaging.context.BaseContext parentContext
Parent for eventual context.
-
-
Method Detail
-
setParentContextLookupStrategy
public void setParentContextLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,org.opensaml.messaging.context.BaseContext> strategy)Set the strategy used to look up the parentBaseContexton which theMessageChannelSecurityContextwill be populated.- Parameters:
strategy- strategy used to look up the parentBaseContexton which to populate theMessageChannelSecurityContext
-
doPreInvoke
protected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException- Overrides:
doPreInvokein classorg.opensaml.messaging.handler.AbstractMessageHandler- Throws:
org.opensaml.messaging.handler.MessageHandlerException
-
getParentContext
protected org.opensaml.messaging.context.BaseContext getParentContext()
Get the parent context on which theMessageChannelSecurityContextwill be populated.- Returns:
- the parent context
-
-