Class AclBinding


  • @Evolving
    public class AclBinding
    extends Object
    Represents a binding between a resource pattern and an access control entry. The API for this class is still evolving and we may break compatibility in minor releases, if necessary.
    • Constructor Detail

      • AclBinding

        public AclBinding​(ResourcePattern pattern,
                          AccessControlEntry entry)
        Create an instance of this class with the provided parameters.
        Parameters:
        pattern - non-null resource pattern.
        entry - non-null entry
    • Method Detail

      • isUnknown

        public boolean isUnknown()
        Returns:
        true if this binding has any UNKNOWN components.
      • pattern

        public ResourcePattern pattern()
        Returns:
        the resource pattern for this binding.
      • entry

        public final AccessControlEntry entry()
        Returns:
        the access control entry for this binding.
      • toFilter

        public AclBindingFilter toFilter()
        Create a filter which matches only this AclBinding.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object