Class CheckMandatoryAuthentication
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.messaging.handler.impl.CheckMandatoryAuthentication
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public final class CheckMandatoryAuthentication extends AbstractMessageHandler
Message handler that checks that a message context is authenticated.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<MessageContext,Boolean>authenticationLookupStrategyStrategy used to look up the authentication state associated with the message context.
-
Constructor Summary
Constructors Constructor Description CheckMandatoryAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoInvoke(MessageContext messageContext)voidsetAuthenticationLookupStrategy(Function<MessageContext,Boolean> strategy)Set the strategy used to look up the authentication state associated with the message context.-
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, 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
-
-
-
-
Field Detail
-
authenticationLookupStrategy
@NonnullAfterInit private Function<MessageContext,Boolean> authenticationLookupStrategy
Strategy used to look up the authentication state associated with the message context.
-
-
Method Detail
-
setAuthenticationLookupStrategy
public void setAuthenticationLookupStrategy(@Nonnull Function<MessageContext,Boolean> strategy)Set the strategy used to look up the authentication state associated with the message context.- Parameters:
strategy- lookup strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-