All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.jaw.reference.agent.services.IPAclSrvIf

public interface IPAclSrvIf
This interface defines the IP address based ACL used by some of the Java DMK adaptors.

A default implementation where the information is stored on a flat file is provided by Jawacl


Method Index

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

Methods

 o getName
 public abstract String getName()
Returns the name of the ACL.

Returns:
the name of the ACL.
 o checkReadPermission
 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.
 o checkReadPermission
 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.
 o checkCommunity
 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.
 o checkWritePermission
 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.
 o checkWritePermission
 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.
 o getTrapDestinations
 public abstract Enumeration getTrapDestinations()
Returns an enumeration of trap destinations.

Returns:
an enumeration of the trap destinations.
 o getTrapCommunities
 public abstract Enumeration getTrapCommunities(InetAddress i)
Returns an enumeration of trap communities for a given host.

Parameters:
i - the address of the host.
Returns:
an enumeration of trap communities for a given host.

All Packages  Class Hierarchy  This Package  Previous  Next  Index