Class CheckExpectedIssuer
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.messaging.handler.impl.CheckExpectedIssuer
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public final class CheckExpectedIssuer extends AbstractMessageHandler
Message handler that checks that a message context has an issuer.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<MessageContext,String>expectedIssuerLookupStrategyStrategy used to look up the expected issuer associated with the message context.private Function<MessageContext,String>issuerLookupStrategyStrategy used to look up the issuer associated with the message context.private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description CheckExpectedIssuer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoInvoke(MessageContext messageContext)voidsetExpectedIssuerLookupStrategy(Function<MessageContext,String> strategy)Set the strategy used to look up the expected issuer associated with the message context.voidsetIssuerLookupStrategy(Function<MessageContext,String> strategy)Set the strategy used to look up the issuer 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
-
log
@Nonnull private org.slf4j.Logger log
Logger.
-
issuerLookupStrategy
@NonnullAfterInit private Function<MessageContext,String> issuerLookupStrategy
Strategy used to look up the issuer associated with the message context.
-
expectedIssuerLookupStrategy
@NonnullAfterInit private Function<MessageContext,String> expectedIssuerLookupStrategy
Strategy used to look up the expected issuer associated with the message context.
-
-
Method Detail
-
setIssuerLookupStrategy
public void setIssuerLookupStrategy(@Nonnull Function<MessageContext,String> strategy)Set the strategy used to look up the issuer associated with the message context.- Parameters:
strategy- lookup strategy
-
setExpectedIssuerLookupStrategy
public void setExpectedIssuerLookupStrategy(@Nonnull Function<MessageContext,String> strategy)Set the strategy used to look up the expected issuer 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
-
-