Class PopulateProfileInterceptorContext
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.profile.interceptor.AbstractProfileInterceptorAction
net.shibboleth.idp.profile.interceptor.impl.PopulateProfileInterceptorContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
An profile interceptor action that populates a
ProfileInterceptorContext with
ProfileInterceptorFlowDescriptor objects based on flow IDs from a lookup function.
The flow IDs used for filtering must omit the ProfileInterceptorFlowDescriptor.FLOW_ID_PREFIX prefix.
- Event:
EventIds.PROCEED_EVENT_ID,IdPEventIds.INVALID_PROFILE_CONFIG- Postcondition:
- The ProfileInterceptorContext is modified as above.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,Collection<String>> Lookup function for the flow IDs to activate from within the available set.The flows to make available for possible use.private final org.slf4j.LoggerClass logger.private StringA label for logging activity indicating what type of flows are being handled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext, ProfileInterceptorContext interceptorContext) Performs this profile interceptor action.protected voidvoidSet the lookup strategy to use for the interceptor flows to activate.voidSet the flows available for possible use.voidsetLoggingLabel(String label) Set a label for logging indicating which "type" of interceptors are being handled.Methods inherited from class net.shibboleth.idp.profile.interceptor.AbstractProfileInterceptorAction
doExecute, doPreExecute, doPreExecute, setLookupStrategyMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods 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. -
availableFlows
The flows to make available for possible use. -
activeFlowsLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,Collection<String>> activeFlowsLookupStrategyLookup function for the flow IDs to activate from within the available set. -
loggingLabel
A label for logging activity indicating what type of flows are being handled.
-
-
Constructor Details
-
PopulateProfileInterceptorContext
public PopulateProfileInterceptorContext()Constructor.
-
-
Method Details
-
setAvailableFlows
Set the flows available for possible use.- Parameters:
flows- the flows available for possible use
-
setActiveFlowsLookupStrategy
public void setActiveFlowsLookupStrategy(@Nonnull Function<ProfileRequestContext, Collection<String>> strategy) Set the lookup strategy to use for the interceptor flows to activate.- Parameters:
strategy- lookup strategy
-
setLoggingLabel
Set a label for logging indicating which "type" of interceptors are being handled.- Parameters:
label- logging label- Since:
- 4.2.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull ProfileInterceptorContext interceptorContext) Performs this profile interceptor action. Default implementation does nothing.- Overrides:
doExecutein classAbstractProfileInterceptorAction- Parameters:
profileRequestContext- the current profile request contextinterceptorContext- the current profile interceptor context
-