Class NullQuorumAuthServer
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.auth.NullQuorumAuthServer
-
- All Implemented Interfaces:
QuorumAuthServer
public class NullQuorumAuthServer extends Object implements QuorumAuthServer
This class represents no authentication server, it just return without performing any authentication.
-
-
Constructor Summary
Constructors Constructor Description NullQuorumAuthServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(Socket sock, DataInputStream din)Performs an authentication step for the given socket connection.voidshutdown()Shut down the server and release resources.
-
-
-
Method Detail
-
authenticate
public void authenticate(Socket sock, DataInputStream din)
Description 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
-
shutdown
public void shutdown()
Description copied from interface:QuorumAuthServerShut down the server and release resources.- Specified by:
shutdownin interfaceQuorumAuthServer
-
-