|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.jaw.impl.adaptor.IPacl.Jawacl
This class defines an implementation of the IPAclSrvIf interface.
In this implementation the ACL information is stored on a flat file and its default location is specified in the following order:
jaw.acl.file property.
getEtcDir("conf"+File.separator+"jaw.acl")
in class DefaultPaths.
| Constructor Summary | |
Jawacl(java.lang.String Owner)
Constructs the Java Dynamic Management Access Control List based on IP addresses. |
|
| 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.util.Enumeration |
entries()
Returns an enumeration of the entries in this ACL. |
java.lang.String |
getAuthorizedListFile()
Returns the full path of the file used to get ACL informations. |
java.lang.String |
getName()
Returns the name of the ACL. |
static com.sun.jaw.impl.adaptor.IPacl.internal.PermissionImpl |
getREAD()
Returns the read permission instance used. |
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. |
static com.sun.jaw.impl.adaptor.IPacl.internal.PermissionImpl |
getWRITE()
Returns the write permission instance used. |
void |
rereadTheFile()
Resets this ACL to the values contained in the configuration file. |
void |
setAuthorizedListFile(java.lang.String filename)
Sets the full path of the file containing the ACL informations. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Jawacl(java.lang.String Owner)
throws java.net.UnknownHostException
owner - The name of the ACL.| Method Detail |
public java.util.Enumeration entries()
java.security.acl.AclEntry.public java.lang.String getName()
public static com.sun.jaw.impl.adaptor.IPacl.internal.PermissionImpl getREAD()
public static com.sun.jaw.impl.adaptor.IPacl.internal.PermissionImpl getWRITE()
public void setAuthorizedListFile(java.lang.String filename)
filename - the full path of the file containing the ACL informations.
public void rereadTheFile()
throws java.security.acl.NotOwnerException,
java.net.UnknownHostException
public java.lang.String getAuthorizedListFile()
public boolean checkReadPermission(java.net.InetAddress address)
address - the host address to check.
public boolean checkReadPermission(java.net.InetAddress address,
java.lang.String community)
address - the host address to check.community - the community associated with the host.public boolean checkCommunity(java.lang.String community)
community - the community to check.public boolean checkWritePermission(java.net.InetAddress address)
address - the host address to check.
public boolean checkWritePermission(java.net.InetAddress address,
java.lang.String community)
address - the host address to check.community - the community associated with the host.public java.util.Enumeration getTrapDestinations()
public java.util.Enumeration getTrapCommunities(java.net.InetAddress i)
i - the address of the host.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||