Package org.springframework.security.authentication
@NullMarked
package org.springframework.security.authentication
Core classes and interfaces related to user authentication, which are used throughout
Spring Security.
Of key importance is the
AuthenticationManager and its default implementation
ProviderManager,
which maintains a list
AuthenticationProviders to which it delegates authentication requests.
-
ClassDescriptionBase class for
Authenticationobjects.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>A common abstract implementation ofAuthentication.Builder.A baseReactiveAuthenticationManagerthat allows subclasses to override and work withUserDetailsobjects.Thrown if an authentication request is rejected because the account has expired.Base class for authentication exceptions which are caused by a particular user account status (locked, disabled etc).AnAuthenticationProviderimplementation that validatesAnonymousAuthenticationTokens.Represents an anonymousAuthentication.Thrown if an authentication request is rejected because there is noAuthenticationobject in theSecurityContext.Provides aAuthentication.getDetails()object for a given web request.Processes anAuthenticationrequest.An interface for resolving anAuthenticationManagerbased on the provided contextAnObservation.Contextused during authenticationsAnObservationConventionfor translating authentications intoKeyValues.Indicates a class can process a specificAuthenticationimplementation.Thrown if an authentication request could not be processed due to a system problem.EvaluatesAuthenticationtokensBasic implementation ofAuthenticationTrustResolver.Thrown if an authentication request is rejected because the credentials are invalid.Implementation ofUserDetailsServicethat utilizes caching through aUserCacheThrown if an authentication request is rejected because the account's credentials have expired.The default strategy for publishing authentication events.AReactiveAuthenticationManagerthat delegates to otherReactiveAuthenticationManagerinstances.Thrown if an authentication request is rejected because the account is disabled.Thrown if an authentication request is rejected because the credentials are not sufficiently trusted.Thrown if an authentication request could not be processed due to a system problem that occurred internally.Thrown if an authentication request is rejected because the account is locked.AnAuthenticationManagerthat observes the authenticationAnReactiveAuthenticationManagerthat observes the authenticationIterates anAuthenticationrequest through a list ofAuthenticationProviders.Thrown byProviderManagerif noAuthenticationProvidercould be found that supports the presentedAuthenticationobject.Determines if the providedAuthenticationcan be authenticated.Adapts an AuthenticationManager to the reactive APIs.An interface for resolving aReactiveAuthenticationManagerbased on the provided contextAnAuthenticationProviderimplementation that validatesRememberMeAuthenticationTokens.Represents a rememberedAuthentication.A builder ofRememberMeAuthenticationTokeninstancesAnAuthenticationProviderimplementation for theTestingAuthenticationToken.AnAuthenticationimplementation that is designed for use whilst unit testing.A builder ofTestingAuthenticationTokeninstancesAReactiveAuthenticationManagerthat uses aReactiveUserDetailsServiceto validate the provided username and password.AnAuthenticationimplementation that is designed for simple presentation of a username and password.UsernamePasswordAuthenticationToken.Builder<B extends UsernamePasswordAuthenticationToken.Builder<B>>A builder ofUsernamePasswordAuthenticationTokeninstances