Class AccessControlEntryFilter


  • @Evolving
    public class AccessControlEntryFilter
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessControlEntryFilter​(java.lang.String principal, java.lang.String host, AclOperation operation, AclPermissionType permissionType)
      Create an instance of an access control entry filter with the provided parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String findIndefiniteField()
      Returns a string describing an ANY or UNKNOWN field, or null if there is no such field.
      int hashCode()  
      java.lang.String host()
      Return the host or null.
      boolean isUnknown()
      Return true if there are any UNKNOWN components.
      boolean matches​(AccessControlEntry other)
      Returns true if this filter matches the given AccessControlEntry.
      boolean matchesAtMostOne()
      Returns true if this filter could only match one ACE -- in other words, if there are no ANY or UNKNOWN fields.
      AclOperation operation()
      Return the AclOperation.
      AclPermissionType permissionType()
      Return the AclPermissionType.
      java.lang.String principal()
      Return the principal or null.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AccessControlEntryFilter

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

      • principal

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

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.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 java.lang.String findIndefiniteField()
        Returns a string describing an ANY or UNKNOWN field, or null if there is no such field.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object