com.sun.management.snmp
Interface InetAddressAcl

All Known Implementing Classes:
JdmkAcl

public interface InetAddressAcl

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

Since:
Java DMK 5.1

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

Method Detail

getName

String getName()
Returns the name of the ACL.

Returns:
The name of the ACL.

checkReadPermission

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.

checkReadPermission

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.

checkCommunity

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.

checkWritePermission

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.

checkWritePermission

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.

getTrapDestinations

Enumeration getTrapDestinations()
Returns an enumeration of trap destinations.

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

getTrapCommunities

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).

getInformDestinations

Enumeration getInformDestinations()
Returns an enumeration of inform destinations.

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

getInformCommunities

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).

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.