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.SaslException
public void authenticate(java.net.Socket sock, java.lang.String hostName) throws java.io.IOException
QuorumAuthLearner
authenticate
in interface QuorumAuthLearner
sock
- socket connection to other quorum peer serverhostName
- host name of other quorum peer serverjava.io.IOException
- if there is an authentication failureCopyright © 2018 The Apache Software Foundation