public class SaslQuorumAuthLearner extends Object implements QuorumAuthLearner
| Constructor and Description |
|---|
SaslQuorumAuthLearner(boolean quorumRequireSasl,
String quorumServicePrincipal,
String loginContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Socket sock,
String hostName)
Performs an authentication step for the given socket connection.
|
public SaslQuorumAuthLearner(boolean quorumRequireSasl,
String quorumServicePrincipal,
String loginContext)
throws SaslException
SaslExceptionpublic void authenticate(Socket sock, String hostName) throws IOException
QuorumAuthLearnerauthenticate in interface QuorumAuthLearnersock - socket connection to other quorum peer serverhostName - host name of other quorum peer serverIOException - if there is an authentication failureCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.