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