Interface java.security.acl.AclEntry
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.security.acl.AclEntry

public interface AclEntry
extends Object
extends Cloneable
This is the interface repressenting one entry in the ACL. The entry may be used as a way of granting or denying permissions.

Method Index

 o addPermission(Permission)
A principal or a group can be associated with multiple permissions.
 o checkPermission(Permission)
Checks if the passed permission is part of the allowed permission set in this entry.
 o clone()
Clones an AclEntry.
 o getPrincipal()
Return the Principal associated in this ACL entry.
 o isNegative()
Returns true if this is a negative ACL.
 o permissions()
return an enumeration of the permissions in this ACL entry.
 o removePermission(Permission)
The method disassociates the permission from the Principal or the Group in this ACL entry.
 o setNegativePermissions()
This method sets the ACL to have negative permissions.
 o setPrincipal(Principal)
Sets the principal in the entity.
 o subtract(Enumeration)
Returns a new AclEntry object whose permission set is the subtraction of the permission set in this object's set and the permission set passed as a parameter.
 o toString()
Return a string representation of the contents of the ACL entry.

Methods

 o setPrincipal
  public abstract boolean setPrincipal(Principal user)
Sets the principal in the entity. If a group or a principal had already been set, a false value is returned, otherwise a true value is returned.
Parameters:
user - The user that is associated with this entry.
Returns:
true if the principal is set, false if there is one already.
 o getPrincipal
  public abstract Principal getPrincipal()
Return the Principal associated in this ACL entry. The method returns null if the entry uses a group instead of a principal.
 o setNegativePermissions
  public abstract void setNegativePermissions()
This method sets the ACL to have negative permissions. That is the user or group is denied the permission set specified in the entry.
 o isNegative
  public abstract boolean isNegative()
Returns true if this is a negative ACL.
 o addPermission
  public abstract boolean addPermission(Permission permission)
A principal or a group can be associated with multiple permissions. This method adds a permission to the ACL entry.
Parameters:
permission - The permission to be associated with the principal or the group in the entry.
Returns:
true if the permission was added, false if the permission was already part of the permission set.
 o removePermission
  public abstract boolean removePermission(Permission permission)
The method disassociates the permission from the Principal or the Group in this ACL entry.
Parameters:
permission - The permission to be disassociated with the principal or the group in the entry.
Returns:
true if the permission is removed, false if the permission is not part of the permission set.
 o checkPermission
  public abstract boolean checkPermission(Permission permission)
Checks if the passed permission is part of the allowed permission set in this entry.
Parameters:
permission - The permission that has to be part of the permission set in the entry.
Returns:
true if the permission passed is part of the permission set in the entry, false otherwise.
 o permissions
  public abstract Enumeration permissions()
return an enumeration of the permissions in this ACL entry.
 o toString
  public abstract String toString()
Return a string representation of the contents of the ACL entry.
Overrides:
toString in class Object
 o subtract
  public abstract AclEntry subtract(Enumeration permissions)
Returns a new AclEntry object whose permission set is the subtraction of the permission set in this object's set and the permission set passed as a parameter.
Parameters:
permissions - The permission set that must be subtracted from the permission set in this entry.
 o clone
  public abstract Object clone()
Clones an AclEntry.
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index