This class is not part of the public API.

Class: sun.security.acl.AclEntryImpl

  • public class AclEntryImpl
  • implements AclEntry
This is a class that describes one entry that associates users or groups with permissions in the ACL. The entry may be used as a way of granting or denying permissions.
Authors:
@author Satish Dharmaraj

Inheritance

Superclass tree: Implements:

Methods

  • AclEntryImpltop

    public AclEntryImpl()
    Construct a null ACL entry
    Google Code Search
    Stack Overflow
  • AclEntryImpltop

    public AclEntryImpl(Principal user)
    Construct an ACL entry that associates a user with permissions in the ACL.
    Parameters:
    @param user The user that is associated with this entry.
    Google Code Search
    Stack Overflow
  • addPermissiontop

    public 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:
    @param permission The permission to be associated with the principal or the group in the entry.
    Return:
    @return true if the permission was added, false if the permission was already part of the permission set.
    Specified by:
    addPermission from AclEntry
    Google Code Search
    Stack Overflow
  • checkPermissiontop

    public boolean checkPermission(Permission permission)
    Checks if the passed permission is part of the allowed permission set in this entry.
    Parameters:
    @param permission The permission that has to be part of the permission set in the entry.
    Return:
    @return true if the permission passed is part of the permission set in the entry, false otherwise.
    Specified by:
    checkPermission from AclEntry
    Google Code Search
    Stack Overflow
  • clonetop

    public synchronized Object clone()
    Clones an AclEntry.
    Return:
    @return a clone of this ACL entry.
    Specified by:
    clone from AclEntry
    Override hierarchy:
    clone from Object
    Google Code Search
    Stack Overflow
  • getPrincipaltop

    public Principal getPrincipal()
    Return the Principal associated in this ACL entry. The method returns null if the entry uses a group instead of a principal.
    Return:
    @return the principal associated with this entry.
    Specified by:
    getPrincipal from AclEntry
    Google Code Search
    Stack Overflow
  • isNegativetop

    public boolean isNegative()
    Returns true if this is a negative ACL.
    Return:
    @return true if this is a negative ACL entry, false if it's not.
    Specified by:
    isNegative from AclEntry
    Google Code Search
    Stack Overflow
  • permissionstop

    public Enumeration<Permission> permissions()
    return an enumeration of the permissions in this ACL entry.
    Return:
    @return an enumeration of the permissions in this ACL entry.
    Specified by:
    permissions from AclEntry
    Google Code Search
    Stack Overflow
  • removePermissiontop

    public boolean removePermission(Permission permission)
    The method disassociates the permission from the Principal or the Group in this ACL entry.
    Parameters:
    @param permission The permission to be disassociated with the principal or the group in the entry.
    Return:
    @return true if the permission is removed, false if the permission is not part of the permission set.
    Specified by:
    removePermission from AclEntry
    Google Code Search
    Stack Overflow
  • setNegativePermissionstop

    public 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.
    Specified by:
    setNegativePermissions from AclEntry
    Google Code Search
    Stack Overflow
  • setPrincipaltop

    public 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:
    @param user The user that is associated with this entry.
    Return:
    @return true if the principal is set, false if there is one already.
    Specified by:
    setPrincipal from AclEntry
    Google Code Search
    Stack Overflow
  • toStringtop

    public String toString()
    Return a string representation of the contents of the ACL entry.
    Return:
    @return a string representation of the contents.
    Specified by:
    toString from AclEntry
    Override hierarchy:
    toString from Object
    Google Code Search
    Stack Overflow

Fields