Class AclBinding

java.lang.Object
com.linkedin.venice.authorization.AclBinding

public class AclBinding extends Object
Represents an Access Control Binding. A Resource has a list of associated AceEntry . It allows for existence of duplicate aceEntry.
  • Constructor Details

    • AclBinding

      public AclBinding(Resource resource)
      Creates an Access Control Binding for a given resource with empty AceEntries.
      Parameters:
      resource - the resource for which this AclBinding is created.
  • Method Details

    • getResource

      public Resource getResource()
    • getAceEntries

      public Collection<AceEntry> getAceEntries()
      Returns an unmodifiable list of existing ace entries.
      Returns:
    • addAceEntries

      public void addAceEntries(Collection<AceEntry> aceEntries)
      Add a list of AceEntry to the existing list of Aces.
      Parameters:
      aceEntries - a list of entries to be added.
    • addAceEntry

      public void addAceEntry(AceEntry aceEntry)
      Add one AceEntry to the existing list of Aces.
      Parameters:
      aceEntry - The entry to be added.
    • removeAceEntry

      public void removeAceEntry(AceEntry aceEntry)
      Remove one AceEntry from the existing list of Aces. If there are multiple matching entries only one will be removed.
      Parameters:
      aceEntry - The entry to be removed.
    • countAceEntries

      public int countAceEntries()
      count the number of AceEntries in the AclBinding
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object