@Deprecated public class AclImpl extends OwnerImpl implements java.security.acl.Acl
Constructor and Description |
---|
AclImpl(java.security.Principal owner,
java.lang.String name)
Deprecated.
Constructor for creating an empty ACL.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(java.security.Principal caller,
java.security.acl.AclEntry entry)
Deprecated.
Adds an ACL entry to this ACL.
|
boolean |
checkPermission(java.security.Principal principal,
java.security.acl.Permission permission)
Deprecated.
This method checks whether or not the specified principal
has the required permission.
|
java.util.Enumeration<java.security.acl.AclEntry> |
entries()
Deprecated.
returns an enumeration of the entries in this ACL.
|
java.lang.String |
getName()
Deprecated.
Returns the name of the ACL.
|
java.util.Enumeration<java.security.acl.Permission> |
getPermissions(java.security.Principal user)
Deprecated.
Permission in java.security.acl has been deprecated and marked for removal
|
boolean |
removeEntry(java.security.Principal caller,
java.security.acl.AclEntry entry)
Deprecated.
Removes an ACL entry from this ACL.
|
void |
setName(java.security.Principal caller,
java.lang.String name)
Deprecated.
Sets the name of the ACL.
|
java.lang.String |
toString()
Deprecated.
return a stringified version of the
ACL.
|
addOwner, deleteOwner, isOwner
public AclImpl(java.security.Principal owner, java.lang.String name)
public void setName(java.security.Principal caller, java.lang.String name) throws java.security.acl.NotOwnerException
setName
in interface java.security.acl.Acl
caller
- the principal who is invoking this method.name
- the name of the ACL.java.security.acl.NotOwnerException
- if the caller principal is
not on the owners list of the Acl.public 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.Acl
caller
- the principal who is invoking this method.entry
- the ACL entry that must be added to the ACL.java.security.acl.NotOwnerException
- if the caller principal
is not on the owners list of the Acl.public boolean removeEntry(java.security.Principal caller, java.security.acl.AclEntry entry) throws java.security.acl.NotOwnerException
removeEntry
in interface java.security.acl.Acl
caller
- the principal who is invoking this method.entry
- the ACL entry that must be removed from the ACL.java.security.acl.NotOwnerException
- if the caller principal is not
the owners list of the Acl.@Deprecated public java.util.Enumeration<java.security.acl.Permission> getPermissions(java.security.Principal user)
getPermissions
in interface java.security.acl.Acl
user
- the principal for which the ACL entry is returned.public boolean checkPermission(java.security.Principal principal, java.security.acl.Permission permission)
checkPermission
in interface java.security.acl.Acl
principal
- the name of the authenticated principalpermission
- the permission that the principal must have.public java.util.Enumeration<java.security.acl.AclEntry> entries()
entries
in interface java.security.acl.Acl
public java.lang.String toString()
toString
in interface java.security.acl.Acl
toString
in class java.lang.Object