public class AccessControlEntryImpl extends Object implements AccessControlEntry
Privilege
objects with a specific Principal
.Constructor and Description |
---|
AccessControlEntryImpl(Principal principal,
Privilege[] privileges)
Creates new ACL entry.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addIfNotPresent(Privilege[] privileges)
Adds specified privileges to this entry.
|
protected boolean |
combineRecursively(List<Privilege> list,
Privilege[] privileges)
Adds specified privileges to the given list.
|
boolean |
equals(Object other) |
Principal |
getPrincipal() |
Privilege[] |
getPrivileges() |
int |
hashCode() |
protected boolean |
hasPrivileges(Privilege[] privileges)
Tests given privileges.
|
String |
toString() |
public AccessControlEntryImpl(Principal principal, Privilege[] privileges) throws AccessControlException
principal
- principal associated with this entry.privileges
- one or more privilege in association with given principal.AccessControlException
- if one or more privileges are invalid.public Principal getPrincipal()
getPrincipal
in interface AccessControlEntry
public Privilege[] getPrivileges()
getPrivileges
in interface AccessControlEntry
protected boolean hasPrivileges(Privilege[] privileges)
privileges
- privileges for testing.protected boolean addIfNotPresent(Privilege[] privileges)
privileges
- privileges to add.protected boolean combineRecursively(List<Privilege> list, Privilege[] privileges)
list
- the result list of combined privileges.privileges
- privileges to add.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.