Class SaslQuorumAuthServer
java.lang.Object
org.apache.zookeeper.server.quorum.auth.SaslQuorumAuthServer
- All Implemented Interfaces:
QuorumAuthServer
-
Constructor Summary
ConstructorsConstructorDescriptionSaslQuorumAuthServer
(boolean quorumRequireSasl, String loginContext, Set<String> authzHosts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(Socket sock, DataInputStream din) Performs an authentication step for the given socket connection.
-
Constructor Details
-
SaslQuorumAuthServer
public SaslQuorumAuthServer(boolean quorumRequireSasl, String loginContext, Set<String> authzHosts) throws SaslException - Throws:
SaslException
-
-
Method Details
-
authenticate
Description copied from interface:QuorumAuthServer
Performs an authentication step for the given socket connection.- Specified by:
authenticate
in interfaceQuorumAuthServer
- Parameters:
sock
- socket connection to other quorum peerdin
- stream used to read auth data send by the quorum learner- Throws:
SaslException
-