Package net.shibboleth.idp.authn
Class AbstractAuthenticationAction
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
- Direct Known Subclasses:
AbstractExtractionAction,AbstractValidationAction,AddAuthnRequest,BaseAddAuthenticationStatementToAssertion,ContinueSAMLAuthentication,DetectIdentitySwitch,ExtractActiveAuthenticationResults,ExtractDiscoveryResponse,ExtractDuoAuthenticationFromHeaders,FilterFlowsByForcedAuthn,FilterFlowsByNonBrowserSupport,FinalizeAuthentication,FinalizeMultiFactorAuthentication,InitializeRequestedPrincipalContext,PopulateAuthenticationContext,PopulateMultiFactorAuthenticationContext,PreserveAuthenticationFlowState,ProcessAssertionsForAuthentication,ProcessRequestedAuthnContext,SelectAuthenticationFlow,TransitionMultiFactorAuthentication,UpdateSessionWithAuthenticationResult
public abstract class AbstractAuthenticationAction extends AbstractProfileAction
A base class for authentication related actions. In addition to the work performed byAbstractProfileAction, this action also looks up and makes available theAuthenticationContext. Authentication action implementations should overridedoExecute(ProfileRequestContext, AuthenticationContext)
-
-
Field Summary
Fields Modifier and Type Field Description private AuthenticationContextauthnContextAuthenticationContext to operate on.private Function<ProfileRequestContext,AuthenticationContext>authnCtxLookupStrategyStrategy used to extract, and create if necessary, theAuthenticationContextfrom theProfileRequestContext.
-
Constructor Summary
Constructors Constructor Description AbstractAuthenticationAction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoExecute(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext)Performs this authentication action.protected booleandoPreExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext)Performs this authentication action's pre-execute step.voidsetAuthenticationContextLookupStrategy(Function<ProfileRequestContext,AuthenticationContext> strategy)Set the context lookup strategy.-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
authnCtxLookupStrategy
@Nonnull private Function<ProfileRequestContext,AuthenticationContext> authnCtxLookupStrategy
Strategy used to extract, and create if necessary, theAuthenticationContextfrom theProfileRequestContext.
-
authnContext
@Nullable private AuthenticationContext authnContext
AuthenticationContext to operate on.
-
-
Method Detail
-
setAuthenticationContextLookupStrategy
public void setAuthenticationContextLookupStrategy(@Nonnull Function<ProfileRequestContext,AuthenticationContext> strategy)Set the context lookup strategy.- Parameters:
strategy- lookup strategy function forAuthenticationContext.
-
doPreExecute
protected final boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected final void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)Performs this authentication action's pre-execute step. Default implementation just returns true.- Parameters:
profileRequestContext- the current IdP profile request contextauthenticationContext- the current authentication context- Returns:
- true iff execution should continue
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)Performs this authentication action. Default implementation throws an exception.- Parameters:
profileRequestContext- the current IdP profile request contextauthenticationContext- the current authentication context
-
-