Class 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 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:
        getName in interface com.sun.management.snmp.InetAddressAcl
        Returns:
        the name of the acl as a String
      • checkReadPermission

        public boolean checkReadPermission​(InetAddress address)
        Specified by:
        checkReadPermission in interface com.sun.management.snmp.InetAddressAcl
      • checkReadPermission

        public boolean checkReadPermission​(InetAddress address,
                                           String community)
        Specified by:
        checkReadPermission in interface com.sun.management.snmp.InetAddressAcl
      • checkCommunity

        public boolean checkCommunity​(String community)
        Specified by:
        checkCommunity in interface com.sun.management.snmp.InetAddressAcl
      • checkWritePermission

        public boolean checkWritePermission​(InetAddress address)
        Specified by:
        checkWritePermission in interface com.sun.management.snmp.InetAddressAcl
      • checkWritePermission

        public boolean checkWritePermission​(InetAddress address,
                                            String community)
        Specified by:
        checkWritePermission in interface com.sun.management.snmp.InetAddressAcl
      • getTrapDestinations

        public Enumeration getTrapDestinations()
        Specified by:
        getTrapDestinations in interface com.sun.management.snmp.InetAddressAcl
        Returns:
        the list of traps destinations
      • getTrapCommunities

        public Enumeration getTrapCommunities​(InetAddress address)
        Specified by:
        getTrapCommunities in interface com.sun.management.snmp.InetAddressAcl
        Returns:
        the list of communities
      • getInformDestinations

        public Enumeration getInformDestinations()
        Specified by:
        getInformDestinations in interface com.sun.management.snmp.InetAddressAcl
        Returns:
        an empty enumeration
      • getInformCommunities

        public Enumeration getInformCommunities​(InetAddress address)
        Specified by:
        getInformCommunities in interface com.sun.management.snmp.InetAddressAcl
        Returns:
        an empty enumeration