Package org.opends.server.snmp
Class SNMPInetAddressAcl
- java.lang.Object
-
- org.opends.server.snmp.SNMPInetAddressAcl
-
- All Implemented Interfaces:
com.sun.management.snmp.InetAddressAcl
public final class SNMPInetAddressAcl extends Object implements com.sun.management.snmp.InetAddressAcl
This class allows to manage the IP-ACL based access rights for SNMP v1/v2c.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkCommunity(String community)
boolean
checkReadPermission(InetAddress address)
boolean
checkReadPermission(InetAddress address, String community)
boolean
checkWritePermission(InetAddress address)
boolean
checkWritePermission(InetAddress address, String community)
Enumeration<String>
getInformCommunities(InetAddress address)
Enumeration<String>
getInformDestinations()
String
getName()
Gets the name of the acl.Enumeration<String>
getTrapCommunities(InetAddress address)
Enumeration<InetAddress>
getTrapDestinations()
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of the acl.- Specified by:
getName
in interfacecom.sun.management.snmp.InetAddressAcl
- Returns:
- the name of the acl as a String
-
checkReadPermission
public boolean checkReadPermission(InetAddress address)
- Specified by:
checkReadPermission
in interfacecom.sun.management.snmp.InetAddressAcl
-
checkReadPermission
public boolean checkReadPermission(InetAddress address, String community)
- Specified by:
checkReadPermission
in interfacecom.sun.management.snmp.InetAddressAcl
-
checkCommunity
public boolean checkCommunity(String community)
- Specified by:
checkCommunity
in interfacecom.sun.management.snmp.InetAddressAcl
-
checkWritePermission
public boolean checkWritePermission(InetAddress address)
- Specified by:
checkWritePermission
in interfacecom.sun.management.snmp.InetAddressAcl
-
checkWritePermission
public boolean checkWritePermission(InetAddress address, String community)
- Specified by:
checkWritePermission
in interfacecom.sun.management.snmp.InetAddressAcl
-
getTrapDestinations
public Enumeration<InetAddress> getTrapDestinations()
- Specified by:
getTrapDestinations
in interfacecom.sun.management.snmp.InetAddressAcl
-
getTrapCommunities
public Enumeration<String> getTrapCommunities(InetAddress address)
- Specified by:
getTrapCommunities
in interfacecom.sun.management.snmp.InetAddressAcl
-
getInformDestinations
public Enumeration<String> getInformDestinations()
- Specified by:
getInformDestinations
in interfacecom.sun.management.snmp.InetAddressAcl
-
getInformCommunities
public Enumeration<String> getInformCommunities(InetAddress address)
- Specified by:
getInformCommunities
in interfacecom.sun.management.snmp.InetAddressAcl
-
-