Class AuthRequest

java.lang.Object
org.apache.zookeeper.server.admin.AuthRequest

public class AuthRequest extends Object
Class representing auth data for performing ACL check on admin server commands. For example, SnapshotCommand requires ZooDefs.Perms.ALL permission on the root node.
  • Constructor Details

    • AuthRequest

      public AuthRequest(int permission, String path)
      Parameters:
      permission - the required permission for auth check
      path - the ZNode path for auth check
  • Method Details

    • getPermission

      public int getPermission()
      Returns:
      permission
    • getPath

      public String getPath()
      Returns:
      ZNode path
    • toString

      public String toString()
      Overrides:
      toString in class Object