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