Class SelectProfileConfiguration
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.profile.messaging.impl.SelectProfileConfiguration
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class SelectProfileConfiguration extends AbstractMessageHandler
Action that selects theProfileConfigurationfor the given message context and sets it in the looked-upRelyingPartyContext.- Postcondition:
- InOutOperationContext.getSubcontext(RelyingPartyContext.class).getProfileConfiguration() != null
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<MessageContext,String>profileIdLookupStrategyStrategy used to locate the effective profile ID associated with a givenMessageContext.private Function<MessageContext,ProfileRequestContext>profileRequestContextLookupStrategyStrategy used to locate theProfileRequestContextassociated with a givenMessageContext.private Function<MessageContext,RelyingPartyContext>relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenMessageContext.private RelyingPartyContextrpCtxThe RelyingPartyContext to operate on.
-
Constructor Summary
Constructors Constructor Description SelectProfileConfiguration()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoInvoke(MessageContext messageContext)protected booleandoPreInvoke(MessageContext messageContext)Function<MessageContext,ProfileRequestContext>getProfileRequestContextLookupStrategy()Get the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.voidsetProfiledIdLookupStrategy(Function<MessageContext,String> strategy)Set the strategy used to locate the effective profile ID associated with a givenMessageContext.voidsetProfileRequestContextLookupStrategy(Function<MessageContext,ProfileRequestContext> strategy)Set the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.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.
-
relyingPartyContextLookupStrategy
@NonnullAfterInit private Function<MessageContext,RelyingPartyContext> relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
profileRequestContextLookupStrategy
@Nonnull private Function<MessageContext,ProfileRequestContext> profileRequestContextLookupStrategy
Strategy used to locate theProfileRequestContextassociated with a givenMessageContext.
-
profileIdLookupStrategy
@Nonnull private Function<MessageContext,String> profileIdLookupStrategy
Strategy used to locate the effective profile ID associated with a givenMessageContext.
-
rpCtx
@Nullable private RelyingPartyContext rpCtx
The RelyingPartyContext to operate on.
-
-
Method Detail
-
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
-
getProfileRequestContextLookupStrategy
@Nonnull public Function<MessageContext,ProfileRequestContext> getProfileRequestContextLookupStrategy()
Get the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.- Returns:
- lookup strategy
-
setProfileRequestContextLookupStrategy
public void setProfileRequestContextLookupStrategy(@Nonnull Function<MessageContext,ProfileRequestContext> strategy)Set the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.- Parameters:
strategy- lookup strategy
-
setProfiledIdLookupStrategy
public void setProfiledIdLookupStrategy(@Nonnull Function<MessageContext,String> strategy)Set the strategy used to locate the effective profile ID associated 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
protected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Overrides:
doPreInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-