This class is not part of the public API.

Class: com.sun.jmx.snmp.IPAcl.AclEntryImpl

Represent one entry in the Access Control List (ACL). This ACL entry object contains a permission associated with a particular principal. (A principal represents an entity such as an individual machine or a group).
See:
@see java.security.acl.AclEntry

Inheritance

Superclass tree: Implements:

Methods

  • AclEntryImpltop

    public AclEntryImpl()
    Contructs an empty ACL entry.
    Google Code Search
    Stack Overflow
  • AclEntryImpltop

    private AclEntryImpl(AclEntryImpl i) throws UnknownHostException
    Google Code Search
    Stack Overflow
  • AclEntryImpltop

    public AclEntryImpl(Principal p) throws UnknownHostException
    Constructs an ACL entry with a specified principal.
    Parameters:
    @param p the principal to be set for this entry.
    Google Code Search
    Stack Overflow
  • addCommunitytop

    public boolean addCommunity(String comm)
    Adds the specified community to this ACL entry. Note: An entry can have multiple communities.
    Parameters:
    @param comm the community to be associated with the principal in this entry.
    Return:
    @return true if the community was added, false if the community was already part of this entry's community set.
    Google Code Search
    Stack Overflow
  • addPermissiontop

    public boolean addPermission(Permission perm)
    Adds the specified permission to this ACL entry. Note: An entry can have multiple permissions.
    Parameters:
    @param perm the permission to be associated with the principal in this entry
    Return:
    @return true if the permission is removed, false if the permission was not part of this entry's permission set.
    Specified by:
    addPermission from AclEntry
    Google Code Search
    Stack Overflow
  • checkCommunitytop

    public boolean checkCommunity(String comm)
    Checks if the specified community is part of the community set in this entry.
    Parameters:
    @param comm the community to be checked for.
    Return:
    @return true if the community is part of the community set in this entry, false otherwise.
    Google Code Search
    Stack Overflow
  • checkPermissiontop

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

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

    public Enumeration<String> communities()
    Returns an enumeration of the communities in this ACL entry.
    Return:
    @return an enumeration of the communities in this ACL entry.
    Google Code Search
    Stack Overflow
  • getPrincipaltop

    public Principal getPrincipal()
    Returns the principal for which permissions are granted or denied by this ACL entry. Returns null if there is no principal set for this entry yet.
    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 entry (one denying the associated principal the set of permissions in the entry), false otherwise.
    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()
    Returns 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
  • removeCommunitytop

    public boolean removeCommunity(String comm)
    Removes the specified community from this ACL entry.
    Parameters:
    @param comm the community to be removed from this entry.
    Return:
    @return true if the community is removed, false if the community was not part of this entry's community set.
    Google Code Search
    Stack Overflow
  • removePermissiontop

    public boolean removePermission(Permission perm)
    Removes the specified permission from this ACL entry.
    Parameters:
    @param perm the permission to be removed from this entry.
    Return:
    @return true if the permission is removed, false if the permission was not part of this entry's permission set.
    Specified by:
    removePermission from AclEntry
    Google Code Search
    Stack Overflow
  • setNegativePermissionstop

    public void setNegativePermissions()
    Sets this ACL entry to be a negative one. That is, the associated principal (e.g., a user or a group) will be denied the permission set specified in the entry. Note: ACL entries are by default positive. An entry becomes a negative entry only if this setNegativePermissions method is called on it. Not Implemented.
    Specified by:
    setNegativePermissions from AclEntry
    Google Code Search
    Stack Overflow
  • setPrincipaltop

    public boolean setPrincipal(Principal p)
    Specifies the principal for which permissions are granted or denied by this ACL entry. If a principal was already set for this ACL entry, false is returned, otherwise true is returned.
    Parameters:
    @param p the principal to be set for this entry.
    Return:
    @return true if the principal is set, false if there was already a principal set for this entry.
    Specified by:
    setPrincipal from AclEntry
    Google Code Search
    Stack Overflow
  • toStringtop

    public String toString()
    Returns a string representation of the contents of this 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

  • commList

    private Vector<String> commList
  • neg

    private boolean neg
  • permList

    private Vector<Permission> permList
  • princ

    private Principal princ
  • serialVersionUID

    static final private long serialVersionUID = -5047185131260073216