java.lang.Object | |
↳ | com.sun.jmx.snmp.IPAcl.SnmpAcl |
Defines an implementation of the InetAddressAcl
interface.
In this implementation the ACL information is stored on a flat file and
its default location is "$JRE/lib/snmp.acl" - See
getDefaultAclFileName()
This API is a Sun Microsystems internal API and is subject to change without notice.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs the Java Dynamic Management(TM) Access Control List
based on IP addresses.
| |||||||||||
Constructs the Java Dynamic Management(TM) Access Control List
based on IP addresses.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks whether or not a community string is defined.
| |||||||||||
Checks whether or not the specified host and community have
READ access. | |||||||||||
Checks whether or not the specified host has
READ access. | |||||||||||
Checks whether or not the specified host and community have
WRITE access. | |||||||||||
Checks whether or not the specified host has
WRITE access. | |||||||||||
Returns ann enumeration of community strings.
| |||||||||||
Returns an enumeration of the entries in this ACL.
| |||||||||||
Returns the full path of the file used to get ACL information.
| |||||||||||
Get the default name for the ACL file.
| |||||||||||
Returns an enumeration of inform communities for a given host.
| |||||||||||
Returns an enumeration of inform destinations.
| |||||||||||
Returns the name of the ACL.
| |||||||||||
Returns the read permission instance used.
| |||||||||||
Returns an enumeration of trap communities for a given host.
| |||||||||||
Returns an enumeration of trap destinations.
| |||||||||||
Returns the write permission instance used.
| |||||||||||
Resets this ACL to the values contained in the configuration file.
| |||||||||||
Sets the full path of the file containing the ACL information.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs the Java Dynamic Management(TM) Access Control List based on IP addresses. The ACL will take the given owner name. The current IP address will be the owner of the ACL.
Owner | The name of the ACL Owner. |
---|
UnknownHostException | If the local host is unknown. |
---|---|
IllegalArgumentException | If the ACL file doesn't exist. |
Constructs the Java Dynamic Management(TM) Access Control List based on IP addresses. The ACL will take the given owner name. The current IP address will be the owner of the ACL.
Owner | The name of the ACL Owner. |
---|---|
aclFileName | The name of the ACL File. |
UnknownHostException | If the local host is unknown. |
---|---|
IllegalArgumentException | If the ACL file doesn't exist. |
Checks whether or not a community string is defined.
community | The community to check. |
---|
true
if the community is known, false
otherwise.
Checks whether or not the specified host and community have READ
access.
address | The host address to check. |
---|---|
community | The community associated with the host. |
true
if the pair (host, community) has read permission, false
otherwise.
Checks whether or not the specified host has READ
access.
address | The host address to check. |
---|
true
if the host has read permission, false
otherwise.
Checks whether or not the specified host and community have WRITE
access.
address | The host address to check. |
---|---|
community | The community associated with the host. |
true
if the pair (host, community) has write permission, false
otherwise.
Checks whether or not the specified host has WRITE
access.
address | The host address to check. |
---|
true
if the host has write permission, false
otherwise.
Returns ann enumeration of community strings. Community strings are returned as String.
Returns an enumeration of the entries in this ACL. Each element in the
enumeration is of type java.security.acl.AclEntry
.
Returns the full path of the file used to get ACL information.
Get the default name for the ACL file. In this implementation this is "$JRE/lib/snmp.acl"
Returns an enumeration of inform communities for a given host.
i | The address of the host. |
---|
String
).
Returns an enumeration of inform destinations.
InetAddress
).
Returns the read permission instance used.
Returns an enumeration of trap communities for a given host.
i | The address of the host. |
---|
String
).
Returns an enumeration of trap destinations.
InetAddress
).
Returns the write permission instance used.
Resets this ACL to the values contained in the configuration file.
NotOwnerException | If the principal attempting the reset is not an owner of this ACL. |
---|---|
UnknownHostException | If IP addresses for hosts contained in the ACL file couldn't be found. |
Sets the full path of the file containing the ACL information.
filename | The full path of the file containing the ACL information. |
---|
IllegalArgumentException | If the passed ACL file doesn't exist. |
---|