public class PopulateProfileInterceptorContext extends AbstractProfileInterceptorAction
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.
EventIds.PROCEED_EVENT_ID, IdPEventIds.INVALID_PROFILE_CONFIG| Modifier and Type | Field and Description |
|---|---|
private Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> |
activeFlowsLookupStrategy
Lookup function for the flow IDs to activate from within the available set.
|
private Collection<ProfileInterceptorFlowDescriptor> |
availableFlows
The flows to make available for possible use.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
PopulateProfileInterceptorContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
ProfileInterceptorContext interceptorContext) |
protected void |
doInitialize() |
void |
setActiveFlowsLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> strategy)
Set the lookup strategy to use for the interceptor flows to activate.
|
void |
setAvailableFlows(Collection<ProfileInterceptorFlowDescriptor> flows)
Set the flows available for possible use.
|
doExecute, doPreExecute, doPreExecute, setLookupStrategydoExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private Collection<ProfileInterceptorFlowDescriptor> availableFlows
@NonnullAfterInit private Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> activeFlowsLookupStrategy
public PopulateProfileInterceptorContext()
public void setAvailableFlows(@Nonnull@NonnullElements Collection<ProfileInterceptorFlowDescriptor> flows)
flows - the flows available for possible usepublic void setActiveFlowsLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> strategy)
strategy - lookup strategyprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull ProfileInterceptorContext interceptorContext)
doExecute in class AbstractProfileInterceptorActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.