Class SelectRelyingPartyConfiguration
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.profile.messaging.impl.SelectRelyingPartyConfiguration
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public final class SelectRelyingPartyConfiguration extends AbstractMessageHandler
This message handler attempts to resolve aRelyingPartyConfigurationand adds it to theRelyingPartyContextthat was looked up.- Postcondition:
- If a
RelyingPartyContextis located, it will be populated with a non-null result of applying the suppliedCriteriaRelyingPartyConfigurationResolverto theRelyingPartyContext.getRelyingPartyId().
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<MessageContext,RelyingPartyContext>relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenMessageContext.private RelyingPartyContextrelyingPartyCtxTheRelyingPartyContextto manipulate.private CriteriaRelyingPartyConfigurationResolverrpConfigResolverResolver used to look up relying party configurations.
-
Constructor Summary
Constructors Constructor Description SelectRelyingPartyConfiguration()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()voiddoInvoke(MessageContext messageContext)booleandoPreInvoke(MessageContext messageContext)voidsetRelyingPartyConfigurationResolver(CriteriaRelyingPartyConfigurationResolver resolver)Set the relying party config resolver to use.voidsetRelyingPartyContextLookupStrategy(Function<MessageContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, 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 final org.slf4j.Logger log
Class logger.
-
rpConfigResolver
@NonnullAfterInit private CriteriaRelyingPartyConfigurationResolver rpConfigResolver
Resolver used to look up relying party configurations.
-
relyingPartyContextLookupStrategy
@Nonnull private Function<MessageContext,RelyingPartyContext> relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
relyingPartyCtx
@Nullable private RelyingPartyContext relyingPartyCtx
TheRelyingPartyContextto manipulate.
-
-
Method Detail
-
setRelyingPartyConfigurationResolver
public void setRelyingPartyConfigurationResolver(@Nonnull CriteriaRelyingPartyConfigurationResolver resolver)Set the relying party config resolver to use.- Parameters:
resolver- the resolver to use
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<MessageContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenMessageContext
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreInvoke
public boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Overrides:
doPreInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
doInvoke
public void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-