Class Authenticator
- java.lang.Object
-
- io.micronaut.security.authentication.Authenticator
-
@Singleton public class Authenticator extends java.lang.Object
An Authenticator operates on severalAuthenticationProvider
instances returning the first authenticatedAuthenticationResponse
.- Since:
- 1.0
- Author:
- Sergio del Amo, Graeme Rocher
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<AuthenticationProvider>
authenticationProviders
-
Constructor Summary
Constructors Constructor Description Authenticator(java.util.Collection<AuthenticationProvider> authenticationProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<AuthenticationResponse>
authenticate(AuthenticationRequest authenticationRequest)
Authenticates the user with the provided credentials.
-
-
-
Field Detail
-
authenticationProviders
protected final java.util.Collection<AuthenticationProvider> authenticationProviders
-
-
Constructor Detail
-
Authenticator
public Authenticator(java.util.Collection<AuthenticationProvider> authenticationProviders)
- Parameters:
authenticationProviders
- a List of available authentication providers
-
-
Method Detail
-
authenticate
public org.reactivestreams.Publisher<AuthenticationResponse> authenticate(AuthenticationRequest authenticationRequest)
Authenticates the user with the provided credentials.- Parameters:
authenticationRequest
- Represents a request to authenticate.- Returns:
- A publisher that emits
AuthenticationResponse
objects
-
-