Module org.snmp4j

Class DefaultSSLEngineConfiguration

    • Constructor Detail

      • DefaultSSLEngineConfiguration

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

      • getDefaultProtocolVersion

        public java.lang.String getDefaultProtocolVersion()
      • getTlsTransportMappingConfig

        public TlsTransportMappingConfig<java.security.cert.X509Certificate> getTlsTransportMappingConfig()
      • configure

        public void configure​(javax.net.ssl.SSLEngine 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
        Parameters:
        sslEngine - a SSLEngine to configure.
      • getSSLContext

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