QuorumAuthLearner (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.quorum.auth

## Interface QuorumAuthLearner

- All Known Implementing Classes:
    NullQuorumAuthLearner, SaslQuorumAuthLearner

      public interface QuorumAuthLearner

  Interface for quorum learner authentication mechanisms.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `authenticate(Socket sock, String hostname)` Performs an authentication step for the given socket connection.

- - ### Method Detail

    - #### authenticate

          void authenticate(Socket sock,
                            String hostname)
                     throws IOException

      Performs an authentication step for the given socket connection.
      Parameters:
        `sock` - socket connection to other quorum peer server
        `hostname` - host name of other quorum peer server
      Throws:
        `IOException` - if there is an authentication failure

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.