Class SaslQuorumAuthLearner
java.lang.Object
org.apache.zookeeper.server.quorum.auth.SaslQuorumAuthLearner
- All Implemented Interfaces:
QuorumAuthLearner
-
Constructor Summary
ConstructorsConstructorDescriptionSaslQuorumAuthLearner
(boolean quorumRequireSasl, String quorumServicePrincipal, String loginContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(Socket sock, String hostName) Performs an authentication step for the given socket connection.
-
Constructor Details
-
SaslQuorumAuthLearner
public SaslQuorumAuthLearner(boolean quorumRequireSasl, String quorumServicePrincipal, String loginContext) throws SaslException - Throws:
SaslException
-
-
Method Details
-
authenticate
Description copied from interface:QuorumAuthLearner
Performs an authentication step for the given socket connection.- Specified by:
authenticate
in interfaceQuorumAuthLearner
- Parameters:
sock
- socket connection to other quorum peer serverhostName
- host name of other quorum peer server- Throws:
IOException
- if there is an authentication failure
-