@Singleton
public class Authenticator
extends java.lang.Object
AuthenticationProvider
instances returning the first
authenticated AuthenticationResponse
.Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<AuthenticationProvider> |
authenticationProviders |
Constructor and Description |
---|
Authenticator(java.util.Collection<AuthenticationProvider> authenticationProviders) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
authenticate(AuthenticationRequest authenticationRequest)
Authenticates the user with the provided credentials.
|
protected final java.util.Collection<AuthenticationProvider> authenticationProviders
public Authenticator(java.util.Collection<AuthenticationProvider> authenticationProviders)
authenticationProviders
- a List of available authentication providerspublic org.reactivestreams.Publisher<AuthenticationResponse> authenticate(AuthenticationRequest authenticationRequest)
authenticationRequest
- Represents a request to authenticate.AuthenticationResponse
objects