public class PopulateAuthenticationContext extends AbstractAuthenticationAction
AuthenticationContext with the AuthenticationFlowDescriptor
objects configured into the IdP, potential flows filtered by flow IDs from a lookup function.
If a RequestedPrincipalContext child is found, then optionally a customized
PrincipalEvalPredicateFactoryRegistry will be installed into it.
The flow IDs used for filtering must omit the AuthenticationFlowDescriptor.FLOW_ID_PREFIX prefix.
EventIds.PROCEED_EVENT_IDProfileRequestContext.getSubcontext(AuthenticationContext.class) != null
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<ProfileRequestContext,Collection<String>> |
activeFlowsLookupStrategy
Lookup function for the flow IDs to activate from within the available set.
|
private Collection<AuthenticationFlowDescriptor> |
availableFlows
All of the known flows in the system.
|
private PrincipalEvalPredicateFactoryRegistry |
evalRegistry
The registry of predicate factories for custom principal evaluation.
|
private com.google.common.base.Function<ProfileRequestContext,String> |
fixedEventLookupStrategy
Optional lookup strategy for triggering credential validators to return a fixed event for testing.
|
private org.slf4j.Logger |
log
Class logger.
|
private Collection<AuthenticationFlowDescriptor> |
potentialFlows
The flows to make available for possible use.
|
| Constructor and Description |
|---|
PopulateAuthenticationContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
PrincipalEvalPredicateFactoryRegistry |
getPrincipalPredicateFactoryEvalRegistry()
Get the registry of predicate factories for custom principal evaluation.
|
void |
setActiveFlowsLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Collection<String>> strategy)
Set the lookup strategy to use for the authentication flows to activate.
|
void |
setAvailableFlows(Collection<AuthenticationFlowDescriptor> flows)
Set the flows known to the system.
|
void |
setFixedEventLookupStrategy(com.google.common.base.Function<ProfileRequestContext,String> strategy)
Set optional lookup strategy to return a fixed event to return from credential validation
to exercise error and warning logic.
|
void |
setPotentialFlows(Collection<AuthenticationFlowDescriptor> flows)
Set the flows to make available for use (a subset of the available ones).
|
void |
setPrincipalEvalPredicateFactoryRegistry(PrincipalEvalPredicateFactoryRegistry registry)
Set the registry of predicate factories for custom principal evaluation.
|
doExecute, doPreExecute, doPreExecute, setLookupStrategydoExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, 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<AuthenticationFlowDescriptor> availableFlows
@Nonnull @NonnullElements private Collection<AuthenticationFlowDescriptor> potentialFlows
@Nonnull private com.google.common.base.Function<ProfileRequestContext,Collection<String>> activeFlowsLookupStrategy
@Nullable private PrincipalEvalPredicateFactoryRegistry evalRegistry
@Nullable private com.google.common.base.Function<ProfileRequestContext,String> fixedEventLookupStrategy
public void setAvailableFlows(@Nonnull@NonnullElements Collection<AuthenticationFlowDescriptor> flows)
flows - the flows known to the systempublic void setPotentialFlows(@Nonnull@NonnullElements Collection<AuthenticationFlowDescriptor> flows)
flows - the flows to make available for usepublic void setActiveFlowsLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,Collection<String>> strategy)
strategy - lookup strategy@Nonnull public PrincipalEvalPredicateFactoryRegistry getPrincipalPredicateFactoryEvalRegistry()
public void setPrincipalEvalPredicateFactoryRegistry(@Nonnull PrincipalEvalPredicateFactoryRegistry registry)
registry - predicate factory registrypublic void setFixedEventLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,String> strategy)
strategy - lookup strategyprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.