public interface

InetAddressAcl

com.sun.jmx.snmp.InetAddressAcl
Known Indirect Subclasses

Class Overview

Defines the IP address based ACL used by the SNMP protocol adaptor.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

Public Methods
abstract boolean checkCommunity(String community)
Checks whether or not a community string is defined.
abstract boolean checkReadPermission(InetAddress address)
Checks whether or not the specified host has READ access.
abstract boolean checkReadPermission(InetAddress address, String community)
Checks whether or not the specified host and community have READ access.
abstract boolean checkWritePermission(InetAddress address, String community)
Checks whether or not the specified host and community have WRITE access.
abstract boolean checkWritePermission(InetAddress address)
Checks whether or not the specified host has WRITE access.
abstract Enumeration getInformCommunities(InetAddress address)
Returns an enumeration of inform communities for a given host.
abstract Enumeration getInformDestinations()
Returns an enumeration of inform destinations.
abstract String getName()
Returns the name of the ACL.
abstract Enumeration getTrapCommunities(InetAddress address)
Returns an enumeration of trap communities for a given host.
abstract Enumeration getTrapDestinations()
Returns an enumeration of trap destinations.

Public Methods

public abstract boolean checkCommunity (String community)

Checks whether or not a community string is defined.

Parameters
community The community to check.
Returns
  • true if the community is known, false otherwise.

public abstract boolean checkReadPermission (InetAddress address)

Checks whether or not the specified host has READ access.

Parameters
address The host address to check.
Returns
  • true if the host has read permission, false otherwise.

public abstract boolean checkReadPermission (InetAddress address, String community)

Checks whether or not the specified host and community have READ access.

Parameters
address The host address to check.
community The community associated with the host.
Returns
  • true if the pair (host, community) has read permission, false otherwise.

public abstract boolean checkWritePermission (InetAddress address, String community)

Checks whether or not the specified host and community have WRITE access.

Parameters
address The host address to check.
community The community associated with the host.
Returns
  • true if the pair (host, community) has write permission, false otherwise.

public abstract boolean checkWritePermission (InetAddress address)

Checks whether or not the specified host has WRITE access.

Parameters
address The host address to check.
Returns
  • true if the host has write permission, false otherwise.

public abstract Enumeration getInformCommunities (InetAddress address)

Returns an enumeration of inform communities for a given host.

Parameters
address The address of the host.
Returns
  • An enumeration of inform communities for a given host (enumeration of String).

public abstract Enumeration getInformDestinations ()

Returns an enumeration of inform destinations.

Returns
  • An enumeration of the inform destinations (enumeration of InetAddress).

public abstract String getName ()

Returns the name of the ACL.

Returns
  • The name of the ACL.

public abstract Enumeration getTrapCommunities (InetAddress address)

Returns an enumeration of trap communities for a given host.

Parameters
address The address of the host.
Returns
  • An enumeration of trap communities for a given host (enumeration of String).

public abstract Enumeration getTrapDestinations ()

Returns an enumeration of trap destinations.

Returns
  • An enumeration of the trap destinations (enumeration of InetAddress).