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
A base class for authentication related actions.
In addition to the work performed by
AbstractProfileAction
, this action also looks up
and makes available the AuthenticationContext
.
Authentication action implementations should override
doExecute(ProfileRequestContext, AuthenticationContext)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AuthenticationContext
AuthenticationContext to operate on.Strategy used to extract, and create if necessary, theAuthenticationContext
from theProfileRequestContext
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
doExecute
(ProfileRequestContext profileRequestContext) protected void
doExecute
(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext) Performs this authentication action.protected final boolean
doPreExecute
(ProfileRequestContext profileRequestContext) protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext) Performs this authentication action's pre-execute step.void
setAuthenticationContextLookupStrategy
(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 Details
-
authnCtxLookupStrategy
Strategy used to extract, and create if necessary, theAuthenticationContext
from theProfileRequestContext
. -
authnContext
AuthenticationContext to operate on.
-
-
Constructor Details
-
AbstractAuthenticationAction
public AbstractAuthenticationAction()Constructor.
-
-
Method Details
-
setAuthenticationContextLookupStrategy
public void setAuthenticationContextLookupStrategy(@Nonnull Function<ProfileRequestContext, AuthenticationContext> strategy) Set the context lookup strategy.- Parameters:
strategy
- lookup strategy function forAuthenticationContext
.
-
doPreExecute
- Overrides:
doPreExecute
in classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecute
in 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
-