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
SaslException
public void authenticate(Socket sock, String hostName) throws IOException
QuorumAuthLearner
authenticate
in interface QuorumAuthLearner
sock
- 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.