Home / Function/ SslContext() — netty Function Reference

SslContext() — netty Function Reference

Architecture documentation for the SslContext() function in OpenSslPrivateKeyMethodTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  502369ca_b225_9482_81d0_c679e756e1e9["SslContext()"]
  e0537394_11f7_7d84_df6a_7390455b871b["OpenSslPrivateKeyMethodTest"]
  502369ca_b225_9482_81d0_c679e756e1e9 -->|defined in| e0537394_11f7_7d84_df6a_7390455b871b
  style 502369ca_b225_9482_81d0_c679e756e1e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java lines 148–160

    private SslContext buildServerContext(OpenSslPrivateKeyMethod method) throws Exception {
        List<String> ciphers = Collections.singletonList(RFC_CIPHER_NAME);

        final KeyManagerFactory kmf = OpenSslX509KeyManagerFactory.newKeyless(CERT.getCertificatePath());

        return SslContextBuilder.forServer(kmf)
                .sslProvider(SslProvider.OPENSSL)
                .ciphers(ciphers)
                // As this is not a TLSv1.3 cipher we should ensure we talk something else.
                .protocols(SslProtocols.TLS_v1_2)
                .option(OpenSslContextOption.PRIVATE_KEY_METHOD, method)
                .build();
    }

Domain

Subdomains

Frequently Asked Questions

What does SslContext() do?
SslContext() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java.
Where is SslContext() defined?
SslContext() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java at line 148.

Analyze Your Own Codebase

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

Try Supermodel Free