Class AccessControlEntryFilter


@Evolving public class AccessControlEntryFilter extends Object
Represents a filter which matches access control entries. The API for this class is still evolving and we may break compatibility in minor releases, if necessary.
  • Field Details

  • Constructor Details

    • AccessControlEntryFilter

      public AccessControlEntryFilter(String principal, String host, AclOperation operation, AclPermissionType permissionType)
      Create an instance of an access control entry filter with the provided parameters.
      principal - the principal or null
      host - the host or null
      operation - non-null operation
      permissionType - non-null permission type
  • Method Details

    • principal

      public String principal()
      Return the principal or null.
    • host

      public String host()
      Return the host or null. The value `*` means any host.
    • operation

      public AclOperation operation()
      Return the AclOperation.
    • permissionType

      public AclPermissionType permissionType()
      Return the AclPermissionType.
    • toString

      public String toString()
      toString in class Object
    • isUnknown

      public boolean isUnknown()
      Return true if there are any UNKNOWN components.
    • matches

      public boolean matches(AccessControlEntry other)
      Returns true if this filter matches the given AccessControlEntry.
    • matchesAtMostOne

      public boolean matchesAtMostOne()
      Returns true if this filter could only match one ACE -- in other words, if there are no ANY or UNKNOWN fields.
    • findIndefiniteField

      public String findIndefiniteField()
      Returns a string describing an ANY or UNKNOWN field, or null if there is no such field.
    • equals

      public boolean equals(Object o)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object