Module org.snmp4j

Class DefaultSSLEngineConfiguration

    • Constructor Detail

      • DefaultSSLEngineConfiguration

        public DefaultSSLEngineConfiguration​(TlsTransportMappingConfig<> tlsTransportMappingConfig,
                                             TLSTMTrustManagerFactory trustManagerFactory,
                                             java.lang.String defaultProtocolVersion)
    • Method Detail

      • getDefaultProtocolVersion

        public java.lang.String getDefaultProtocolVersion()
      • getTlsTransportMappingConfig

        public TlsTransportMappingConfig<> getTlsTransportMappingConfig()
      • configure

        public void configure​( sslEngine)
        Description copied from interface: SSLEngineConfigurator
        Configure the supplied SSLEngine for TLS. Configuration includes enabled protocol(s), cipher codes, etc.
        Specified by:
        configure in interface SSLEngineConfigurator
        sslEngine - a SSLEngine to configure.
      • getSSLContext

        public getSSLContext​(boolean useClientMode,
                                                      TransportStateReference transportStateReference)
        Description copied from interface: SSLEngineConfigurator
        Gets the SSLContext for this SSL connection.
        Specified by:
        getSSLContext in interface SSLEngineConfigurator
        useClientMode - true if the connection is established in client mode.
        transportStateReference - the transportStateReference with additional security information for the SSL connection to establish.
        the SSLContext.
        Throws: - if the TLS context initialization failed because of configuration errors.