Class SaslQuorumAuthLearner
- java.lang.Object
- 
- org.apache.zookeeper.server.quorum.auth.SaslQuorumAuthLearner
 
- 
- All Implemented Interfaces:
- QuorumAuthLearner
 
 public class SaslQuorumAuthLearner extends Object implements QuorumAuthLearner 
- 
- 
Constructor SummaryConstructors Constructor Description SaslQuorumAuthLearner(boolean quorumRequireSasl, String quorumServicePrincipal, String loginContext)
 - 
Method SummaryAll 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- 
SaslQuorumAuthLearnerpublic SaslQuorumAuthLearner(boolean quorumRequireSasl, String quorumServicePrincipal, String loginContext) throws SaslException- Throws:
- SaslException
 
 
- 
 - 
Method Detail- 
authenticatepublic void authenticate(Socket sock, String hostName) throws IOException Description copied from interface:QuorumAuthLearnerPerforms an authentication step for the given socket connection.- Specified by:
- authenticatein interface- QuorumAuthLearner
- Parameters:
- sock- socket connection to other quorum peer server
- hostName- host name of other quorum peer server
- Throws:
- IOException- if there is an authentication failure
 
 
- 
 
-