Module org.snmp4j

Class TLSTM

    • Field Detail

      • connectionTimeout

        private long connectionTimeout
      • nextSessionID

        private long nextSessionID
      • DEFAULT_TLSTM_PROTOCOLS

        public static final java.lang.String DEFAULT_TLSTM_PROTOCOLS
        The default supported TLS protocol versions.
        See Also:
        Constant Field Values
      • localCertificateAlias

        private java.lang.String localCertificateAlias
      • keyStore

        private java.lang.String keyStore
      • keyStorePassword

        private java.lang.String keyStorePassword
      • trustStore

        private java.lang.String trustStore
      • trustStorePassword

        private java.lang.String trustStorePassword
      • tlsProtocols

        private java.lang.String[] tlsProtocols
      • tlsMaxFragmentSize

        private int tlsMaxFragmentSize
      • pkixRevocationChecker

        private java.security.cert.PKIXRevocationChecker pkixRevocationChecker
        By default no revocation checks
      • x509CertificateRevocationListURI

        private java.lang.String x509CertificateRevocationListURI
    • Constructor Detail

      • TLSTM

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

        public TLSTM​(TlsAddress address)
              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 - the address to bind for incoming requests.
        Throws:
        java.io.IOException - on failure of binding a local port.
      • TLSTM

        public TLSTM​(TlsAddress 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 - the address to bind for incoming requests.
        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
      • TLSTM

        public TLSTM​(TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                     TlsAddress serverAddress)
              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 TcpAddress instance that describes the server address to listen on incoming connection requests.
        Throws:
        java.io.IOException - if the given address cannot be bound.
      • TLSTM

        public TLSTM​(TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                     TlsAddress serverAddress,
                     CounterSupport counterSupport)
              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 TcpAddress 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.
      • TLSTM

        public TLSTM​(TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                     TlsAddress 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 TcpAddress 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