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 TypeMethodDescriptionvoidauthenticate(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:QuorumAuthLearnerPerforms an authentication step for the given socket connection.- Specified by:
authenticatein 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
-