Class: com.sun.jmx.snmp.IPAcl.AclEntryImpl
- class AclEntryImpl
- implements AclEntry, Serializable
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).
Methods
-
AclEntryImpltop
public AclEntryImpl()Contructs an empty ACL entry. -
AclEntryImpltop
private AclEntryImpl(AclEntryImpl i) throws UnknownHostException -
AclEntryImpltop
public AclEntryImpl(Principal p) throws UnknownHostExceptionConstructs an ACL entry with a specified principal. -
addCommunitytop
public boolean addCommunity(String comm)Adds the specified community to this ACL entry. Note: An entry can have multiple communities. -
addPermissiontop
public boolean addPermission(Permission perm)Adds the specified permission to this ACL entry. Note: An entry can have multiple permissions.- Specified by:
- addPermission from AclEntry
-
checkCommunitytop
public boolean checkCommunity(String comm)Checks if the specified community is part of the community set in this entry. -
checkPermissiontop
public boolean checkPermission(Permission perm)Checks if the specified permission is part of the permission set in this entry.- Specified by:
- checkPermission from AclEntry
-
clonetop
public Object clone()Clones this ACL entry. -
communitiestop
public Enumeration<String> communities()Returns an enumeration of the communities in this ACL entry. -
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.- Specified by:
- getPrincipal from AclEntry
-
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.- Specified by:
- isNegative from AclEntry
-
permissionstop
public Enumeration<Permission> permissions()Returns an enumeration of the permissions in this ACL entry.- Specified by:
- permissions from AclEntry
-
removeCommunitytop
public boolean removeCommunity(String comm)Removes the specified community from this ACL entry. -
removePermissiontop
public boolean removePermission(Permission perm)Removes the specified permission from this ACL entry.- Specified by:
- removePermission from AclEntry
-
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
-
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.- Specified by:
- setPrincipal from AclEntry
-
toStringtop
public String toString()Returns a string representation of the contents of this ACL entry.
Fields
-
commList
-
neg
private boolean neg -
permList
private Vector<Permission> permList -
princ
private Principal princ -
serialVersionUID
static final private long serialVersionUID = -5047185131260073216
