Module org.snmp4j

Class DTLSTM

    • Constructor Detail

      • DTLSTM

        public DTLSTM()
               throws java.io.IOException
        Creates a default UDP transport mapping with the server for incoming messages disabled.
        Throws:
        java.net.UnknownHostException - if the local host cannot be determined.
        java.io.IOException
      • DTLSTM

        public DTLSTM​(DtlsAddress address)
               throws java.io.IOException
        Creates a TLS transport mapping with the server for incoming messages bind to the given DTLS address. The securityCallback needs to be specified before listen() is called.
        Parameters:
        address - server address to bind.
        Throws:
        java.io.IOException - on failure of binding a local port.
        Since:
        3.3.2
      • DTLSTM

        public DTLSTM​(DtlsAddress address,
                      boolean serverEnabled)
               throws java.io.IOException
        Creates a TLS transport mapping with the server for incoming messages bind to the given address. The securityCallback needs to be specified before listen() is called.
        Parameters:
        address - server address to bind.
        serverEnabled - defines the role of the underlying SSLEngine. Setting this to false enables the SSLEngine.setUseClientMode(boolean).
        Throws:
        java.io.IOException - on failure of binding a local port.
        Since:
        3.2.0
      • DTLSTM

        public DTLSTM​(TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                      DtlsAddress serverAddress)
               throws java.io.IOException
        Creates a DTLS transport mapping that binds to the given address (interface) on the local host.
        Parameters:
        securityCallback - a security name callback to resolve X509 certificates to tmSecurityNames.
        serverAddress - the UdpAddress instance that describes the server address to listen on incoming connection requests.
        Throws:
        java.io.IOException - if the given address cannot be bound.
      • DTLSTM

        public DTLSTM​(TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                      DtlsAddress serverAddress,
                      CounterSupport counterSupport)
               throws java.io.IOException
        Creates a TLS transport mapping that binds to the given address (interface) on the local host and runs as a server.
        Parameters:
        securityCallback - a security name callback to resolve X509 certificates to tmSecurityNames.
        serverAddress - the UdpAddress instance that describes the server address to listen on incoming connection requests.
        counterSupport - The CounterSupport instance to be used to count events created by this TLSTM instance. To get a default instance, use CounterSupport.getInstance().
        Throws:
        java.io.IOException - if the given address cannot be bound.
      • DTLSTM

        public DTLSTM​(TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                      DtlsAddress serverAddress,
                      CounterSupport counterSupport,
                      boolean serverEnabled)
               throws java.io.IOException
        Creates a TLS transport mapping that binds to the given address (interface) on the local host.
        Parameters:
        securityCallback - a security name callback to resolve X509 certificates to tmSecurityNames.
        serverAddress - the UdpAddress instance that describes the server address to listen on incoming connection requests.
        counterSupport - The CounterSupport instance to be used to count events created by this TLSTM instance. To get a default instance, use CounterSupport.getInstance().
        serverEnabled - defines the role of the underlying SSLEngine. Setting this to false enables the SSLEngine.setUseClientMode(boolean).
        Throws:
        java.io.IOException - if the given address cannot be bound.
        Since:
        3.2.0