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 booleancheckCommunity(String community)booleancheckReadPermission(InetAddress address)booleancheckReadPermission(InetAddress address, String community)booleancheckWritePermission(InetAddress address)booleancheckWritePermission(InetAddress address, String community)Enumeration<String>getInformCommunities(InetAddress address)Enumeration<String>getInformDestinations()StringgetName()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:
getNamein interfacecom.sun.management.snmp.InetAddressAcl- Returns:
- the name of the acl as a String
-
checkReadPermission
public boolean checkReadPermission(InetAddress address)
- Specified by:
checkReadPermissionin interfacecom.sun.management.snmp.InetAddressAcl
-
checkReadPermission
public boolean checkReadPermission(InetAddress address, String community)
- Specified by:
checkReadPermissionin interfacecom.sun.management.snmp.InetAddressAcl
-
checkCommunity
public boolean checkCommunity(String community)
- Specified by:
checkCommunityin interfacecom.sun.management.snmp.InetAddressAcl
-
checkWritePermission
public boolean checkWritePermission(InetAddress address)
- Specified by:
checkWritePermissionin interfacecom.sun.management.snmp.InetAddressAcl
-
checkWritePermission
public boolean checkWritePermission(InetAddress address, String community)
- Specified by:
checkWritePermissionin interfacecom.sun.management.snmp.InetAddressAcl
-
getTrapDestinations
public Enumeration<InetAddress> getTrapDestinations()
- Specified by:
getTrapDestinationsin interfacecom.sun.management.snmp.InetAddressAcl
-
getTrapCommunities
public Enumeration<String> getTrapCommunities(InetAddress address)
- Specified by:
getTrapCommunitiesin interfacecom.sun.management.snmp.InetAddressAcl
-
getInformDestinations
public Enumeration<String> getInformDestinations()
- Specified by:
getInformDestinationsin interfacecom.sun.management.snmp.InetAddressAcl
-
getInformCommunities
public Enumeration<String> getInformCommunities(InetAddress address)
- Specified by:
getInformCommunitiesin interfacecom.sun.management.snmp.InetAddressAcl
-
-