QuorumAuthServer
public class SaslQuorumAuthServer extends java.lang.Object implements QuorumAuthServer
Constructor | Description |
---|---|
SaslQuorumAuthServer(boolean quorumRequireSasl,
java.lang.String loginContext,
java.util.Set<java.lang.String> authzHosts) |
Modifier and Type | Method | Description |
---|---|---|
void |
authenticate(java.net.Socket sock,
java.io.DataInputStream din) |
Performs an authentication step for the given socket connection.
|
public SaslQuorumAuthServer(boolean quorumRequireSasl, java.lang.String loginContext, java.util.Set<java.lang.String> authzHosts) throws javax.security.sasl.SaslException
javax.security.sasl.SaslException
public void authenticate(java.net.Socket sock, java.io.DataInputStream din) throws javax.security.sasl.SaslException
QuorumAuthServer
authenticate
in interface QuorumAuthServer
sock
- socket connection to other quorum peerdin
- stream used to read auth data send by the quorum learnerjavax.security.sasl.SaslException
Copyright © 2018 The Apache Software Foundation