@Requires(beans={UserFetcher.class,PasswordEncoder.class,AuthoritiesFetcher.class}) @Singleton @Deprecated public class DelegatingAuthenticationProvider extends java.lang.Object implements AuthenticationProvider
Modifier and Type | Field and Description |
---|---|
protected AuthoritiesFetcher |
authoritiesFetcher
Deprecated.
|
protected PasswordEncoder |
passwordEncoder
Deprecated.
|
protected UserFetcher |
userFetcher
Deprecated.
|
Constructor and Description |
---|
DelegatingAuthenticationProvider(UserFetcher userFetcher,
PasswordEncoder passwordEncoder,
AuthoritiesFetcher authoritiesFetcher)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
authenticate(AuthenticationRequest authenticationRequest)
Deprecated.
Attempts to authenticate a user.
|
protected org.reactivestreams.Publisher<AuthenticationResponse> |
createSuccessfulAuthenticationResponse(AuthenticationRequest authenticationRequest,
UserState user)
Deprecated.
Create a successful
AuthenticationResponse . |
protected AuthenticationResponse |
createSuccessfulAuthenticationResponse(AuthenticationRequest authenticationRequest,
UserState user,
java.util.List<java.lang.String> authorities)
Deprecated.
Create a successful
AuthenticationResponse . |
protected org.reactivestreams.Publisher<UserState> |
fetchUserState(AuthenticationRequest authenticationRequest)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate
protected final UserFetcher userFetcher
protected final PasswordEncoder passwordEncoder
protected final AuthoritiesFetcher authoritiesFetcher
public DelegatingAuthenticationProvider(UserFetcher userFetcher, PasswordEncoder passwordEncoder, AuthoritiesFetcher authoritiesFetcher)
userFetcher
- Fetches users from persistencepasswordEncoder
- Collaborator which checks if a raw password matches an encoded passwordauthoritiesFetcher
- Fetches authorities for a particular userpublic org.reactivestreams.Publisher<AuthenticationResponse> authenticate(AuthenticationRequest authenticationRequest)
authenticate
in interface AuthenticationProvider
authenticationRequest
- The authentication request dataprotected org.reactivestreams.Publisher<UserState> fetchUserState(AuthenticationRequest authenticationRequest)
authenticationRequest
- The authentication request dataUserState
. A representation of the state of a user after authentication.protected org.reactivestreams.Publisher<AuthenticationResponse> createSuccessfulAuthenticationResponse(AuthenticationRequest authenticationRequest, UserState user)
AuthenticationResponse
.authenticationRequest
- The authentication request datauser
- A representation of the state of a user after authentication.protected AuthenticationResponse createSuccessfulAuthenticationResponse(AuthenticationRequest authenticationRequest, UserState user, java.util.List<java.lang.String> authorities)
AuthenticationResponse
.authenticationRequest
- The authentication request datauser
- A representation of the state of a user after authentication.authorities
- A list of authorities granted to authenticated user.