Home / Class/ OpenSslServerContext Class — netty Architecture

OpenSslServerContext Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  35d2e560_432a_9320_2e1d_3e29640f50c7["OpenSslServerContext"]
  d2f9da00_1614_9fb4_bb0f_309d3fa4d58a["OpenSslServerContext.java"]
  35d2e560_432a_9320_2e1d_3e29640f50c7 -->|defined in| d2f9da00_1614_9fb4_bb0f_309d3fa4d58a
  5dc9fac0_9d45_3470_ad1a_1d77ca30a4f5["OpenSslServerContext()"]
  35d2e560_432a_9320_2e1d_3e29640f50c7 -->|method| 5dc9fac0_9d45_3470_ad1a_1d77ca30a4f5
  93f60a12_4699_2345_aa57_0ac6e99a2f22["OpenSslServerSessionContext()"]
  35d2e560_432a_9320_2e1d_3e29640f50c7 -->|method| 93f60a12_4699_2345_aa57_0ac6e99a2f22

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSslServerContext.java lines 39–377

public final class OpenSslServerContext extends OpenSslContext {
    private final OpenSslServerSessionContext sessionContext;

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format
     * @param keyFile a PKCS#8 private key file in PEM format
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslServerContext(File certChainFile, File keyFile) throws SSLException {
        this(certChainFile, keyFile, null);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format
     * @param keyFile a PKCS#8 private key file in PEM format
     * @param keyPassword the password of the {@code keyFile}.
     *                    {@code null} if it's not password-protected.
     * @deprecated use {@link SslContextBuilder}
     */
    @Deprecated
    public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword) throws SSLException {
        this(certChainFile, keyFile, keyPassword, null, IdentityCipherSuiteFilter.INSTANCE,
             ApplicationProtocolConfig.DISABLED, 0, 0);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format
     * @param keyFile a PKCS#8 private key file in PEM format
     * @param keyPassword the password of the {@code keyFile}.
     *                    {@code null} if it's not password-protected.
     * @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 OpenSslServerContext(
            File certChainFile, File keyFile, String keyPassword,
            Iterable<String> ciphers, ApplicationProtocolConfig apn,
            long sessionCacheSize, long sessionTimeout) throws SSLException {
        this(certChainFile, keyFile, keyPassword, ciphers, IdentityCipherSuiteFilter.INSTANCE,
             apn, sessionCacheSize, sessionTimeout);
    }

    /**
     * Creates a new instance.
     *
     * @param certChainFile an X.509 certificate chain file in PEM format
     * @param keyFile a PKCS#8 private key file in PEM format
     * @param keyPassword the password of the {@code keyFile}.
     *                    {@code null} if it's not password-protected.
     * @param ciphers the cipher suites to enable, in the order of preference.
     *                {@code null} to use the default cipher suites.
     * @param nextProtocols the application layer protocols to accept, in the order of preference.
     *                      {@code null} to disable TLS NPN/ALPN extension.
     * @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 OpenSslServerContext(
            File certChainFile, File keyFile, String keyPassword,
            Iterable<String> ciphers, Iterable<String> nextProtocols,
            long sessionCacheSize, long sessionTimeout) throws SSLException {
        this(certChainFile, keyFile, keyPassword, ciphers,
            toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
    }

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free