public class MultiFactorAuthenticationContext extends BaseContext
AuthenticationContextBaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private Map<String,AuthenticationResult> |
activeResults
Authentication results that are active (may be generated earlier or during current request).
|
private String |
event
A SWF event to signal as the completion of the MFA flow.
|
private AuthenticationFlowDescriptor |
mfaFlowDescriptor
Login flow descriptor for the MFA flow.
|
private String |
nextFlowId
The next flow due to execute (or the currently executing flow during subflow execution).
|
private Map<String,MultiFactorAuthenticationTransition> |
transitionMap
Map of login "factors" (flows) and the transition rules to run after them.
|
| Constructor and Description |
|---|
MultiFactorAuthenticationContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,AuthenticationResult> |
getActiveResults()
Get a live list of the
AuthenticationResult objects produced during the flow. |
AuthenticationFlowDescriptor |
getAuthenticationFlowDescriptor()
Get the
AuthenticationFlowDescriptor representing the MFA flow. |
String |
getEvent()
Get an event that should be signaled as the result of the MFA flow.
|
String |
getNextFlowId()
Get the next flow due to execute (or that is currently executing).
|
Map<String,MultiFactorAuthenticationTransition> |
getTransitionMap()
Get a live map of the transitions to apply.
|
boolean |
isAcceptable()
Get whether one or more of the active results in this context satisfies the request.
|
MultiFactorAuthenticationContext |
setAuthenticationFlowDescriptor(AuthenticationFlowDescriptor descriptor)
Set the
AuthenticationFlowDescriptor representing the MFA flow. |
MultiFactorAuthenticationContext |
setEvent(String e)
Set an event that should be signaled as the result of the MFA flow.
|
MultiFactorAuthenticationContext |
setNextFlowId(String id)
Set the next flow due to execute.
|
MultiFactorAuthenticationContext |
setTransitionMap(Map<String,MultiFactorAuthenticationTransition> map)
Set the map of transitions to apply, replacing any existing entries.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private Map<String,MultiFactorAuthenticationTransition> transitionMap
@Nonnull @NonnullElements private final Map<String,AuthenticationResult> activeResults
@Nullable private AuthenticationFlowDescriptor mfaFlowDescriptor
@Nullable @NotEmpty private String nextFlowId
public MultiFactorAuthenticationContext()
@Nonnull @NonnullElements @Live public Map<String,MultiFactorAuthenticationTransition> getTransitionMap()
@Nonnull public MultiFactorAuthenticationContext setTransitionMap(@Nonnull Map<String,MultiFactorAuthenticationTransition> map)
map - map of transition logic@Nonnull @NonnullElements @Live public Map<String,AuthenticationResult> getActiveResults()
AuthenticationResult objects produced during the flow.@Nullable public AuthenticationFlowDescriptor getAuthenticationFlowDescriptor()
AuthenticationFlowDescriptor representing the MFA flow.@Nonnull public MultiFactorAuthenticationContext setAuthenticationFlowDescriptor(@Nullable AuthenticationFlowDescriptor descriptor)
AuthenticationFlowDescriptor representing the MFA flow.descriptor - login flow descriptor@Nullable @NotEmpty public String getNextFlowId()
@Nonnull public MultiFactorAuthenticationContext setNextFlowId(@Nullable@NotEmpty String id)
id - flow ID@Nullable @NotEmpty public String getEvent()
If set, the MFA flow will eventually terminate with this event once all transitions have completed.
@Nonnull public MultiFactorAuthenticationContext setEvent(@Nullable@NotEmpty String e)
e - event to signalpublic boolean isAcceptable()
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.