Class SaslQuorumAuthServer
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.auth.SaslQuorumAuthServer
-
- All Implemented Interfaces:
QuorumAuthServer
public class SaslQuorumAuthServer extends java.lang.Object implements QuorumAuthServer
-
-
Constructor Summary
Constructors Constructor Description SaslQuorumAuthServer(boolean quorumRequireSasl, java.lang.String loginContext, java.util.Set<java.lang.String> authzHosts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(java.net.Socket sock, java.io.DataInputStream din)Performs an authentication step for the given socket connection.
-
-
-
Method Detail
-
authenticate
public void authenticate(java.net.Socket sock, java.io.DataInputStream din) throws javax.security.sasl.SaslExceptionDescription copied from interface:QuorumAuthServerPerforms an authentication step for the given socket connection.- Specified by:
authenticatein interfaceQuorumAuthServer- Parameters:
sock- socket connection to other quorum peerdin- stream used to read auth data send by the quorum learner- Throws:
javax.security.sasl.SaslException
-
-