Class AclBinding
java.lang.Object
com.linkedin.venice.authorization.AclBinding
-
Constructor Summary
ConstructorsConstructorDescriptionAclBinding(Resource resource) Creates an Access Control Binding for a given resource with empty AceEntries. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAceEntries(Collection<AceEntry> aceEntries) Add a list ofAceEntryto the existing list of Aces.voidaddAceEntry(AceEntry aceEntry) Add oneAceEntryto the existing list of Aces.intcount the number of AceEntries in the AclBindingbooleanReturns an unmodifiable list of existing ace entries.inthashCode()voidremoveAceEntry(AceEntry aceEntry) Remove oneAceEntryfrom the existing list of Aces.toString()
-
Constructor Details
-
AclBinding
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
-
getAceEntries
Returns an unmodifiable list of existing ace entries.- Returns:
-
addAceEntries
Add a list ofAceEntryto the existing list of Aces.- Parameters:
aceEntries- a list of entries to be added.
-
addAceEntry
Add oneAceEntryto the existing list of Aces.- Parameters:
aceEntry- The entry to be added.
-
removeAceEntry
Remove oneAceEntryfrom 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
-
hashCode
public int hashCode() -
equals
-