|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ajanta.security.acl.OwnerImpl
|
+--ajanta.security.acl.AclImpl
AclImpl implements java.security.acl.Acl interface
Acl,
Serialized Form| Constructor Summary | |
AclImpl(java.security.Principal owner,
java.lang.String name)
Constructs AclImp object |
|
| Method Summary | |
boolean |
addEntry(java.security.Principal caller,
java.security.acl.AclEntry entry)
Adds an ACL entry to this ACL. |
boolean |
checkPermission(java.security.Principal principal,
java.security.acl.Permission permission)
Checks whether or not the specified principal has the specified permission. |
java.util.Enumeration |
entries()
Returns an enumeration of the entries in this ACL. |
java.lang.String |
getName()
Returns the name of this ACL. |
java.util.Enumeration |
getPermissions(java.security.Principal user)
Returns an enumeration for the set of allowed permissions for the specified principal (representing an entity such as an individual or a group). |
boolean |
removeEntry(java.security.Principal caller,
java.security.acl.AclEntry entry)
Removes an ACL entry from this ACL. |
void |
setName(java.security.Principal caller,
java.lang.String name)
Sets the name of this ACL. |
java.lang.String |
toString()
Returns a string representation of the ACL contents. |
| Methods inherited from class ajanta.security.acl.OwnerImpl |
addOwner, deleteOwner, isOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.acl.Owner |
addOwner, deleteOwner, isOwner |
| Constructor Detail |
public AclImpl(java.security.Principal owner,
java.lang.String name)
| Method Detail |
public void setName(java.security.Principal caller,
java.lang.String name)
throws java.security.acl.NotOwnerException
setName in interface java.security.acl.Aclcaller - - the principal invoking this method.
It must be an owner of this ACL.name - - the name to be given to this ACL.
java.security.acl.NotOwnerExceptionpublic java.lang.String getName()
getName in interface java.security.acl.Acl
public boolean addEntry(java.security.Principal caller,
java.security.acl.AclEntry entry)
throws java.security.acl.NotOwnerException
addEntry in interface java.security.acl.Aclcaller - - the principal invoking this method. It must be
an owner of this ACL.entry - - the ACL entry to be added to this ACL.
java.security.acl.NotOwnerException - if the caller principal is not an owner of this Acl.
public boolean removeEntry(java.security.Principal caller,
java.security.acl.AclEntry entry)
throws java.security.acl.NotOwnerException
removeEntry in interface java.security.acl.Aclcaller - - the principal invoking this method.
It must be an owner of this ACL.entry - - the ACL entry to be removed from this ACL.
java.security.acl.NotOwnerException - if the caller principal is not an owner of this Acl.public java.util.Enumeration getPermissions(java.security.Principal user)
getPermissions in interface java.security.acl.Acluser - - the principal whose permission set is to be returned.
public java.util.Enumeration entries()
entries in interface java.security.acl.Acl
public boolean checkPermission(java.security.Principal principal,
java.security.acl.Permission permission)
checkPermission in interface java.security.acl.Aclprincipal - - the principal, assumed to be a valid authenticated
Principal.permission - - the permission to be checked for.
public java.lang.String toString()
toString in interface java.security.acl.AcltoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||