|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ajanta.security.acl.AclEntryImpl
AclEntryImpl implements java.security.acl.AclEntry interface
AclEntry,
Serialized Form| Constructor Summary | |
AclEntryImpl()
Constructs a AclEntryImpl object |
|
AclEntryImpl(java.security.Principal principal)
Constructs a AclEntryImpl object |
|
| Method Summary | |
boolean |
addPermission(java.security.acl.Permission permission)
Adds the specified permission to this ACL entry. |
boolean |
checkPermission(java.security.acl.Permission permission)
Checks if the specified permission is part of the permission set in this entry. |
java.lang.Object |
clone()
Clones this ACL entry |
java.security.Principal |
getPrincipal()
Returns the principal for which permissions are granted or denied by this ACL entry. |
boolean |
isNegative()
Returns true if this is a negative ACL entry (one denying the associated principal the set of permissions in the entry), false otherwise. |
java.util.Enumeration |
permissions()
Returns an enumeration of the permissions in this ACL entry. |
boolean |
removePermission(java.security.acl.Permission permission)
Removes the specified permission from this ACL entry. |
void |
setNegativePermissions()
Sets this ACL entry to be a negative one. |
boolean |
setPrincipal(java.security.Principal user)
Specifies the principal for which permissions are granted or denied by this ACL entry |
java.lang.String |
toString()
Returns a string representation of the contents of this ACL entry. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AclEntryImpl()
public AclEntryImpl(java.security.Principal principal)
principal - - principal for which this AclEntry is created| Method Detail |
public boolean setPrincipal(java.security.Principal user)
setPrincipal in interface java.security.acl.AclEntryuser - - the principal to be set for this entry.
public java.security.Principal getPrincipal()
getPrincipal in interface java.security.acl.AclEntrypublic void setNegativePermissions()
setNegativePermissions in interface java.security.acl.AclEntrypublic boolean isNegative()
isNegative in interface java.security.acl.AclEntrypublic boolean addPermission(java.security.acl.Permission permission)
addPermission in interface java.security.acl.AclEntrypermission - - the permission to be associated with
the principal in this entry.
public boolean removePermission(java.security.acl.Permission permission)
removePermission in interface java.security.acl.AclEntrypermission - - the permission to be removed from this entry.
public boolean checkPermission(java.security.acl.Permission permission)
checkPermission in interface java.security.acl.AclEntrypermission - - the permission to be checked for.
public java.util.Enumeration permissions()
permissions in interface java.security.acl.AclEntrypublic java.lang.String toString()
toString in interface java.security.acl.AclEntrytoString in class java.lang.Objectpublic java.lang.Object clone()
clone in interface java.security.acl.AclEntryclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||