Class AclBinding
java.lang.Object
com.linkedin.venice.authorization.AclBinding
-
Constructor Summary
ConstructorDescriptionAclBinding
(Resource resource) Creates an Access Control Binding for a given resource with empty AceEntries. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAceEntries
(Collection<AceEntry> aceEntries) Add a list ofAceEntry
to the existing list of Aces.void
addAceEntry
(AceEntry aceEntry) Add oneAceEntry
to the existing list of Aces.int
count the number of AceEntries in the AclBindingboolean
Returns an unmodifiable list of existing ace entries.int
hashCode()
void
removeAceEntry
(AceEntry aceEntry) Remove oneAceEntry
from 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 ofAceEntry
to the existing list of Aces.- Parameters:
aceEntries
- a list of entries to be added.
-
addAceEntry
Add oneAceEntry
to the existing list of Aces.- Parameters:
aceEntry
- The entry to be added.
-
removeAceEntry
Remove oneAceEntry
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
-
hashCode
public int hashCode() -
equals
-