public class SaslQuorumAuthLearner extends java.lang.Object implements QuorumAuthLearner
| Constructor and Description |
|---|
SaslQuorumAuthLearner(boolean quorumRequireSasl,
java.lang.String quorumServicePrincipal,
java.lang.String loginContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(java.net.Socket sock,
java.lang.String hostName)
Performs an authentication step for the given socket connection.
|
public SaslQuorumAuthLearner(boolean quorumRequireSasl,
java.lang.String quorumServicePrincipal,
java.lang.String loginContext)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionpublic void authenticate(java.net.Socket sock,
java.lang.String hostName)
throws java.io.IOException
QuorumAuthLearnerauthenticate in interface QuorumAuthLearnersock - socket connection to other quorum peer serverhostName - host name of other quorum peer serverjava.io.IOException - if there is an authentication failureCopyright © 2019 The Apache Software Foundation