Package org.opends.server.snmp
Class SNMPInetAddressAcl
- java.lang.Object
-
- org.opends.server.snmp.SNMPInetAddressAcl
-
- All Implemented Interfaces:
com.sun.management.snmp.InetAddressAcl
public 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.
-
-
Constructor Summary
Constructors Constructor Description SNMPInetAddressAcl(SNMPConnectionHandlerCfg configuration)Creates an IP-Based ACL controller.
-
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)EnumerationgetInformCommunities(InetAddress address)EnumerationgetInformDestinations()StringgetName()Gets the name of the acl.EnumerationgetTrapCommunities(InetAddress address)EnumerationgetTrapDestinations()
-
-
-
Constructor Detail
-
SNMPInetAddressAcl
public SNMPInetAddressAcl(SNMPConnectionHandlerCfg configuration)
Creates an IP-Based ACL controller.- Parameters:
configuration- of the Configuration
-
-
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 getTrapDestinations()
- Specified by:
getTrapDestinationsin interfacecom.sun.management.snmp.InetAddressAcl- Returns:
- the list of traps destinations
-
getTrapCommunities
public Enumeration getTrapCommunities(InetAddress address)
- Specified by:
getTrapCommunitiesin interfacecom.sun.management.snmp.InetAddressAcl- Returns:
- the list of communities
-
getInformDestinations
public Enumeration getInformDestinations()
- Specified by:
getInformDestinationsin interfacecom.sun.management.snmp.InetAddressAcl- Returns:
- an empty enumeration
-
getInformCommunities
public Enumeration getInformCommunities(InetAddress address)
- Specified by:
getInformCommunitiesin interfacecom.sun.management.snmp.InetAddressAcl- Returns:
- an empty enumeration
-
-