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