Class AuthenticationHelper

java.lang.Object
org.apache.zookeeper.server.AuthenticationHelper

public class AuthenticationHelper extends Object
Contains helper methods to enforce authentication
  • Field Details

  • Constructor Details

    • AuthenticationHelper

      public AuthenticationHelper()
  • Method Details

    • isEnforceAuthEnabled

      public boolean isEnforceAuthEnabled()
    • enforceAuthentication

      public boolean enforceAuthentication(ServerCnxn connection, int xid) throws IOException
      Returns true when authentication enforcement was success otherwise returns false also closes the connection
      Parameters:
      connection - server connection
      xid - current operation xid
      Returns:
      true when authentication enforcement is success otherwise false
      Throws:
      IOException
    • isSaslAuthRequired

      public boolean isSaslAuthRequired()