FileDocCategorySizeDatePackage
AclEntry.javaAPI DocAndroid 1.5 API4124Wed May 06 22:41:06 BST 2009java.security.acl

AclEntry

public interface AclEntry implements Cloneable
The Access Control List Entry interface definition.

An {@code AclEntry} is a list of the {@link Permission}s that are granted (positive) or denied (negative) to a {@link Principal}.

since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public booleanaddPermission(Permission permission)
Adds the specified permission to this ACL entry.

param
permission the permission to be added.
return
{@code true} if the specified permission is added, {@code false} if the permission was already in this entry.
since
Android 1.0

public booleancheckPermission(Permission permission)
Checks whether the specified permission is in this ACL entry.

param
permission the permission to check.
return
{@code true} if the permission is in this entry, otherwise {@code false}.
since
Android 1.0

public java.lang.Objectclone()
Clones this ACL entry instance.

return
a copy of this entry.
since
Android 1.0

public java.security.PrincipalgetPrincipal()
Returns the principal of this ACL entry.

return
the principal of this ACL entry, or null if none is set.
since
Android 1.0

public booleanisNegative()
Returns whether this ACL entry is negative.

return
{@code true} if this ACL entry is negative, {@code false} if it's positive.
since
Android 1.0

public java.util.Enumerationpermissions()
Returns the list of permissions of this ACL entry.

return
the list of permissions of this ACL entry,
since
Android 1.0

public booleanremovePermission(Permission permission)
Removes the specified permission from this ACL entry.

param
permission the permission to be removed.
return
{@code true} if the permission is removed, {@code false} if the permission was not in this entry.
since
Android 1.0

public voidsetNegativePermissions()
Sets this ACL entry to be negative.

The permissions in this ACL entry will be denied to the principal associated with this entry.

Note: An ACL entry is positive by default and can only become negative by calling this method.

since
Android 1.0

public booleansetPrincipal(java.security.Principal user)
Set the principal for this ACL entry.

The principal for an ACL entry can only be set once.

param
user the principal for this ACL entry.
return
{@code true} on success, {@code false} if there is a principal already set for this entry.
since
Android 1.0

public java.lang.StringtoString()
Returns the string representation of this ACL entry.

return
the string representation of this ACL entry.
since
Android 1.0