Class AccessControlEntry

  • @Evolving
    public class AccessControlEntry
    extends Object
    Represents an access control entry. ACEs are a tuple of principal, host, operation, and permissionType. The API for this class is still evolving and we may break compatibility in minor releases, if necessary.
    • Constructor Detail

      • AccessControlEntry

        public AccessControlEntry​(String principal,
                                  String host,
                                  AclOperation operation,
                                  AclPermissionType permissionType)
        Create an instance of an access control entry with the provided parameters.
        principal - non-null principal
        host - non-null host
        operation - non-null operation, ANY is not an allowed operation
        permissionType - non-null permission type, ANY is not an allowed type
    • Method Detail

      • principal

        public String principal()
        Return the principal for this entry.
      • host

        public String host()
        Return the host or `*` for all hosts.
      • operation

        public AclOperation operation()
        Return the AclOperation. This method will never return AclOperation.ANY.
      • permissionType

        public AclPermissionType permissionType()
        Return the AclPermissionType. This method will never return AclPermissionType.ANY.
      • isUnknown

        public boolean isUnknown()
        Return true if this AclResource has any UNKNOWN components.
      • hashCode

        public int hashCode()
        hashCode in class Object