Class SaslQuorumAuthLearner
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.auth.SaslQuorumAuthLearner
-
- All Implemented Interfaces:
QuorumAuthLearner
public class SaslQuorumAuthLearner extends java.lang.Object implements QuorumAuthLearner
-
-
Constructor Summary
Constructors Constructor Description SaslQuorumAuthLearner(boolean quorumRequireSasl, java.lang.String quorumServicePrincipal, java.lang.String loginContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(java.net.Socket sock, java.lang.String hostName)Performs an authentication step for the given socket connection.
-
-
-
Method Detail
-
authenticate
public void authenticate(java.net.Socket sock, java.lang.String hostName) throws java.io.IOExceptionDescription 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:
java.io.IOException- if there is an authentication failure
-
-