Home / Class/ OpenSslClientContext Class — netty Architecture

OpenSslClientContext Class — netty Architecture

Architecture documentation for the OpenSslClientContext class in OpenSslClientContext.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e063bc2d_ebbe_6413_e5b8_cf2294505b96["OpenSslClientContext"]
  ebc375ab_8bc2_6b8d_e296_4f8cef3a7a63["OpenSslClientContext.java"]
  e063bc2d_ebbe_6413_e5b8_cf2294505b96 -->|defined in| ebc375ab_8bc2_6b8d_e296_4f8cef3a7a63
  4434477c_00d1_701b_7a65_e40eeef4bd3e["OpenSslClientContext()"]
  e063bc2d_ebbe_6413_e5b8_cf2294505b96 -->|method| 4434477c_00d1_701b_7a65_e40eeef4bd3e
  2b47a15d_b7d5_cbf6_1198_3e682413835e["OpenSslSessionContext()"]
  e063bc2d_ebbe_6413_e5b8_cf2294505b96 -->|method| 2b47a15d_b7d5_cbf6_1198_3e682413835e

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSslClientContext.java lines 40–218

public final class OpenSslClientContext extends OpenSslContext {
    private final OpenSslSessionContext sessionContext;

    /**
     * Creates a new instance.
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslClientContext() throws SSLException {
        this(null, null, null, null, null, null, null, IdentityCipherSuiteFilter.INSTANCE, null, 0, 0);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format.
     *                      {@code null} to use the system default
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslClientContext(File certChainFile) throws SSLException {
        this(certChainFile, null);
    }

    /**
     * Creates a new instance.
     *
     * @param trustManagerFactory the {@link TrustManagerFactory} that provides the {@link TrustManager}s
     *                            that verifies the certificates sent from servers.
     *                            {@code null} to use the default.
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslClientContext(TrustManagerFactory trustManagerFactory) throws SSLException {
        this(null, trustManagerFactory);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format.
     *                      {@code null} to use the system default
     * @param trustManagerFactory the {@link TrustManagerFactory} that provides the {@link TrustManager}s
     *                            that verifies the certificates sent from servers.
     *                            {@code null} to use the default.
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory) throws SSLException {
        this(certChainFile, trustManagerFactory, null, null, null, null, null,
             IdentityCipherSuiteFilter.INSTANCE, null, 0, 0);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format
     * @param trustManagerFactory the {@link TrustManagerFactory} that provides the {@link TrustManager}s
     *                            that verifies the certificates sent from servers.
     *                            {@code null} to use the default..
     * @param ciphers the cipher suites to enable, in the order of preference.
     *                {@code null} to use the default cipher suites.
     * @param apn Provides a means to configure parameters related to application protocol negotiation.
     * @param sessionCacheSize the size of the cache used for storing SSL session objects.
     *                         {@code 0} to use the default value.
     * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
     *                       {@code 0} to use the default value.
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers,
                                ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
            throws SSLException {
        this(certChainFile, trustManagerFactory, null, null, null, null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
                apn, sessionCacheSize, sessionTimeout);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format

Frequently Asked Questions

What is the OpenSslClientContext class?
OpenSslClientContext is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslClientContext.java.
Where is OpenSslClientContext defined?
OpenSslClientContext is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslClientContext.java at line 40.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free