Class AllowAllAuthenticator

  • All Implemented Interfaces:
    Authenticator

    public final class AllowAllAuthenticator
    extends Object
    implements Authenticator
    Allows all requests to be authenticated.
    Author:
    Stephen Mallette (http://stephen.genoprime.com)
    • Constructor Detail

      • AllowAllAuthenticator

        public AllowAllAuthenticator()
    • Method Detail

      • requireAuthentication

        public boolean requireAuthentication()
        Description copied from interface: Authenticator
        Whether or not the authenticator requires explicit login. If false will instantiate user with AuthenticatedUser.ANONYMOUS_USER.
        Specified by:
        requireAuthentication in interface Authenticator
      • setup

        public void setup​(Map<String,​Object> config)
        Description copied from interface: Authenticator
        Setup is called once upon system startup to initialize the Authenticator.
        Specified by:
        setup in interface Authenticator
      • newSaslNegotiator

        public Authenticator.SaslNegotiator newSaslNegotiator​(InetAddress remoteAddress)
        Description copied from interface: Authenticator
        Provide a SASL handler to perform authentication for an single connection. SASL is a stateful protocol, so a new instance must be used for each authentication attempt.
        Specified by:
        newSaslNegotiator in interface Authenticator
        Parameters:
        remoteAddress - the IP address of the client to authenticate to authenticate or null if an internal client (one not connected over the remote transport).