Class SelectProfileConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.idp.profile.messaging.impl.SelectProfileConfiguration
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
Action that selects the
ProfileConfiguration for the given message context and sets it in the looked-up
RelyingPartyContext.- Postcondition:
- InOutOperationContext.getSubcontext(RelyingPartyContext.class).getProfileConfiguration() != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Function<MessageContext,String> Strategy used to locate the effective profile ID associated with a givenMessageContext.private Function<MessageContext,ProfileRequestContext> Strategy used to locate theProfileRequestContextassociated with a givenMessageContext.private Function<MessageContext,RelyingPartyContext> Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.private RelyingPartyContextThe RelyingPartyContext to operate on. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoInvoke(MessageContext messageContext) protected booleandoPreInvoke(MessageContext messageContext) 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.voidSet the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
relyingPartyContextLookupStrategy
@NonnullAfterInit private Function<MessageContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenMessageContext. -
profileRequestContextLookupStrategy
Strategy used to locate theProfileRequestContextassociated with a givenMessageContext. -
profileIdLookupStrategy
Strategy used to locate the effective profile ID associated with a givenMessageContext. -
rpCtx
The RelyingPartyContext to operate on.
-
-
Constructor Details
-
SelectProfileConfiguration
public SelectProfileConfiguration()Constructor.
-
-
Method Details
-
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
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
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreInvoke
protected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException - Overrides:
doPreInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-