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

All Known Implementing Classes:
Jawacl

public abstract 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 Summary
 boolean checkCommunity(java.lang.String community)
          Checks whether or not a community string is defined.
 boolean checkReadPermission(java.net.InetAddress address)
          Checks whether or not the specified host has READ access.
 boolean checkReadPermission(java.net.InetAddress address, java.lang.String community)
          Checks whether or not the specified host and community have READ access.
 boolean checkWritePermission(java.net.InetAddress address)
          Checks whether or not the specified host has WRITE access.
 boolean checkWritePermission(java.net.InetAddress address, java.lang.String community)
          Checks whether or not the specified host and community have WRITE access.
 java.lang.String getName()
          Returns the name of the ACL.
 java.util.Enumeration getTrapCommunities(java.net.InetAddress i)
          Returns an enumeration of trap communities for a given host.
 java.util.Enumeration getTrapDestinations()
          Returns an enumeration of trap destinations.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the ACL.
Returns:
the name of the ACL.

checkReadPermission

public boolean checkReadPermission(java.net.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

public boolean checkReadPermission(java.net.InetAddress address,
                                   java.lang.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

public boolean checkCommunity(java.lang.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

public boolean checkWritePermission(java.net.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

public boolean checkWritePermission(java.net.InetAddress address,
                                    java.lang.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

public java.util.Enumeration getTrapDestinations()
Returns an enumeration of trap destinations.
Returns:
an enumeration of the trap destinations.

getTrapCommunities

public java.util.Enumeration getTrapCommunities(java.net.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.