javax.management.snmp
Interface InetAddressAcl

All Known Subinterfaces:
IPAcl
All Known Implementing Classes:
JdmkAcl

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public interface InetAddressAcl

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

Since:
Java DMK 5.0

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

Method Detail

getName

public String getName()
Deprecated. 
Returns the name of the ACL.

Returns:
The name of the ACL.

checkReadPermission

public boolean checkReadPermission(InetAddress address)
Deprecated. 
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

public boolean checkReadPermission(InetAddress address,
                                   String community)
Deprecated. 
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

public boolean checkCommunity(String community)
Deprecated. 
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

public boolean checkWritePermission(InetAddress address)
Deprecated. 
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

public boolean checkWritePermission(InetAddress address,
                                    String community)
Deprecated. 
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

public Enumeration getTrapDestinations()
Deprecated. 
Returns an enumeration of trap destinations.

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

getTrapCommunities

public Enumeration getTrapCommunities(InetAddress address)
Deprecated. 
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

public Enumeration getInformDestinations()
Deprecated. 
Returns an enumeration of inform destinations.

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

getInformCommunities

public Enumeration getInformCommunities(InetAddress address)
Deprecated. 
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).

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

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