public class ExtractActiveAuthenticationResults extends AbstractAuthenticationAction
AuthenticationContext with the active
AuthenticationResult objects found in a SessionContext that is a direct
child of the ProfileRequestContext.
Only results from flows in the "potentialFlows" collection in the AuthenticationContext
are extracted, which prevents cross-contamination between SPs that have differing rules established
for which flows are to be active, because the potentialFlows collection is filtered by that
criterion.
If {@link AuthenticationContext#getHintedName() is null, then it is populated with the principal name from the session.
EventIds.PROCEED_EVENT_IDProfileRequestContext.getSubcontext(AuthenticationContext.class, false) != null
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private IdPSession |
session
Session to copy results from.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> |
sessionContextLookupStrategy
Lookup function for SessionContext.
|
| Constructor and Description |
|---|
ExtractActiveAuthenticationResults()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setSessionContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> strategy)
Set the lookup strategy for the SessionContext to access.
|
doExecute, 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 Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> sessionContextLookupStrategy
@Nullable private IdPSession session
public ExtractActiveAuthenticationResults()
public void setSessionContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> strategy)
strategy - lookup strategyprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.