public class PopulateMultiFactorAuthenticationContext extends AbstractAuthenticationAction
MultiFactorAuthenticationContext with the set of
transition rules to use for coordinating activity, the executing AuthenticationFlowDescriptor
and with any active "factors" found, if an active result from the MFA flow is present in the
AuthenticationContext.
If the lookup strategy supplies no transition rules to use, then the AuthnEventIds.RESELECT_FLOW
event is signaled.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, AuthnEventIds.RESELECT_FLOWProfileRequestContext.getSubcontext(AuthenticationContext.class) != null
ProfileRequestContext.getSubcontext(AuthenticationContext.class).getSubcontext( MultiFactorAuthenticationContext.class) != null
| Modifier and Type | Class and Description |
|---|---|
private class |
PopulateMultiFactorAuthenticationContext.DefaultResultLookupStrategy
Default strategy function to extract embedded
AuthenticationResults from inside
the AuthenticationResultPrincipal collection of an active AuthenticationResult
of the currently executing flow. |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<ProfileRequestContext,Collection<AuthenticationResult>> |
activeResultLookupStrategy
Lookup strategy for active "factors" that may already be usable.
|
private org.slf4j.Logger |
log
Class logger.
|
private com.google.common.base.Function<ProfileRequestContext,MultiFactorAuthenticationContext> |
multiFactorContextCreationStrategy
Lookup/creation function for the context to populate.
|
private com.google.common.base.Function<ProfileRequestContext,Map<String,MultiFactorAuthenticationTransition>> |
transitionMapLookupStrategy
Lookup strategy for obtaining the map of transition rules to use.
|
| Constructor and Description |
|---|
PopulateMultiFactorAuthenticationContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setActiveResultLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Collection<AuthenticationResult>> strategy)
Set the lookup strategy for any active "factors" that may be reusable.
|
void |
setMultiFactorContextCreationStrategy(com.google.common.base.Function<ProfileRequestContext,MultiFactorAuthenticationContext> strategy)
Set the lookup/creation strategy to use for the context to populate.
|
void |
setTransitionMapLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Map<String,MultiFactorAuthenticationTransition>> strategy)
Set the strategy to lookup the map of transition rules to apply.
|
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 private com.google.common.base.Function<ProfileRequestContext,Map<String,MultiFactorAuthenticationTransition>> transitionMapLookupStrategy
@Nonnull private com.google.common.base.Function<ProfileRequestContext,MultiFactorAuthenticationContext> multiFactorContextCreationStrategy
@Nullable private com.google.common.base.Function<ProfileRequestContext,Collection<AuthenticationResult>> activeResultLookupStrategy
PopulateMultiFactorAuthenticationContext()
public void setTransitionMapLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,Map<String,MultiFactorAuthenticationTransition>> strategy)
strategy - lookup strategypublic void setMultiFactorContextCreationStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,MultiFactorAuthenticationContext> strategy)
strategy - lookup/creation strategypublic void setActiveResultLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,Collection<AuthenticationResult>> strategy)
The default strategy is to look for an active AuthenticationResult of the flow
currently being attempted, and check within it for AuthenticationResultPrincipal objects.
strategy - lookup strategyprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.