Home / Function/ connectWithEd25519() — netty Function Reference

connectWithEd25519() — netty Function Reference

Architecture documentation for the connectWithEd25519() function in PkiTestingTlsTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cea9e376_01a4_af2e_0ca6_46efb41fb600["connectWithEd25519()"]
  938821ed_7909_bb31_9c78_1d4536ee982b["PkiTestingTlsTest"]
  cea9e376_01a4_af2e_0ca6_46efb41fb600 -->|defined in| 938821ed_7909_bb31_9c78_1d4536ee982b
  a8eac5c5_344b_7e6d_6f39_e94e4efd9850["testTlsConnection()"]
  cea9e376_01a4_af2e_0ca6_46efb41fb600 -->|calls| a8eac5c5_344b_7e6d_6f39_e94e4efd9850
  style cea9e376_01a4_af2e_0ca6_46efb41fb600 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/PkiTestingTlsTest.java lines 111–137

    @EnabledForJreRange(min = JRE.JAVA_15)
    @Test
    public void connectWithEd25519()
            throws Exception {
        X509Bundle cert = new CertificateBuilder()
                .algorithm(CertificateBuilder.Algorithm.ed25519)
                .setIsCertificateAuthority(true)
                .subject("CN=localhost")
                .buildSelfSigned();

        // We currently don't support Ed25519 or Ed448 with the OPENSSL provider,
        // so to use those algorithms we have to use the JDK provider.
        SslProvider provider = SslProvider.JDK;

        final SslContext serverContext = SslContextBuilder.forServer(cert.toKeyManagerFactory())
                .sslProvider(provider)
                .build();

        final SslContext clientContext = SslContextBuilder.forClient()
                .trustManager(cert.toTrustManagerFactory())
                .sslProvider(provider)
                .serverName(new SNIHostName("localhost"))
                .protocols("TLSv1.3")
                .build();

        testTlsConnection(serverContext, clientContext, null);
    }

Domain

Subdomains

Frequently Asked Questions

What does connectWithEd25519() do?
connectWithEd25519() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/PkiTestingTlsTest.java.
Where is connectWithEd25519() defined?
connectWithEd25519() is defined in handler/src/test/java/io/netty/handler/ssl/PkiTestingTlsTest.java at line 111.
What does connectWithEd25519() call?
connectWithEd25519() calls 1 function(s): testTlsConnection.

Analyze Your Own Codebase

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

Try Supermodel Free