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 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 com.google.common.base.Function<ProfileRequestContext,SessionContext> |
sessionContextLookupStrategy
Lookup function for SessionContext.
|
| Constructor and Description |
|---|
ExtractActiveAuthenticationResults()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setSessionContextLookupStrategy(com.google.common.base.Function<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 com.google.common.base.Function<ProfileRequestContext,SessionContext> sessionContextLookupStrategy
@Nullable private IdPSession session
public ExtractActiveAuthenticationResults()
public void setSessionContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SessionContext> strategy)
strategy - lookup strategyprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.