Class Authenticator


  • @Singleton
    public class Authenticator
    extends java.lang.Object
    An Authenticator operates on several AuthenticationProvider instances returning the first authenticated AuthenticationResponse.
    Since:
    1.0
    Author:
    Sergio del Amo, Graeme Rocher
    • 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