|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ACL
This interface represents an Access Control List (ACL), a data structure used to protect access
to resources. It is composed of entries, where each entry is represented by the ALCEntry
class and represents the permissions assigned to a given identity.
When a client attempts to perform an operation on a resource, the ACL associated to the resource is used
to verify if the client has enough permissions to perform that operation. In order to do that, the
ACLEntry corresponding to the client's identity is retrieved and then the permission set
contained in the entry is verified to decide if access should be granted or not.
| Method Summary | |
|---|---|
boolean |
addEntry(ACLEntry entry)
Adds an entry to this ACL. |
java.util.Collection<? extends ACLEntry> |
getEntries()
Obtains the collection of all ACLEntries in this ACL. |
org.jboss.security.authorization.Resource |
getResource()
Obtains a reference to the resource being protected by this ACL. |
boolean |
isGranted(ACLPermission permission,
org.jboss.security.identity.Identity identity)
Verify if the given permission is assigned to the specified Identity. |
boolean |
removeEntry(ACLEntry entry)
Removes an entry from this ACL. |
| Method Detail |
|---|
boolean addEntry(ACLEntry entry)
Adds an entry to this ACL. If the ACL already has an ACLEntry associated to the new
entry's identity, then the new entry will not be added.
entry - the ACLEntry to be added.
true if the entry was added; false otherwise.boolean removeEntry(ACLEntry entry)
Removes an entry from this ACL.
entry - the ACLEntry to be removed.
true if the entry is removed; false if the entry can't be found
in the ACL.java.util.Collection<? extends ACLEntry> getEntries()
Obtains the collection of all ACLEntries in this ACL.
Collection containing all entries in this ACL.org.jboss.security.authorization.Resource getResource()
Obtains a reference to the resource being protected by this ACL.
Resource.
boolean isGranted(ACLPermission permission,
org.jboss.security.identity.Identity identity)
Verify if the given permission is assigned to the specified Identity.
permission - the ACLPermission to be checked for.identity - the Identity being verified.
true if the specified permission is assigned to the identity;
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||