Package net.shibboleth.idp.authn
Class AbstractAuthenticationAction
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.authn.AbstractAuthenticationAction
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
- Direct Known Subclasses:
AbstractExtractionAction,AbstractValidationAction,AddAuthnRequest,BaseAddAuthenticationStatementToAssertion,ContinueSAMLAuthentication,DetectIdentitySwitch,ExtractActiveAuthenticationResults,ExtractDiscoveryResponse,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 AuthenticationContextAuthenticationContext to operate on.Strategy used to extract, and create if necessary, theAuthenticationContextfrom theProfileRequestContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voiddoExecute(ProfileRequestContext profileRequestContext) protected voiddoExecute(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext) Performs this authentication action.protected final booleandoPreExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext) Performs this authentication action's pre-execute step.private AuthenticationContextnull safe getter.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, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
authnCtxLookupStrategy
Strategy used to extract, and create if necessary, theAuthenticationContextfrom 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.
-
getAuthenticationContext
null safe getter.- Returns:
- Returns the authnContext.
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- 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
-