Home / Function/ testTLSv13EnabledIfNoCipherSuiteConfigured() — netty Function Reference

testTLSv13EnabledIfNoCipherSuiteConfigured() — netty Function Reference

Architecture documentation for the testTLSv13EnabledIfNoCipherSuiteConfigured() function in SSLEngineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7743b165_45bc_382c_ec7a_7b9c39a9a9fe["testTLSv13EnabledIfNoCipherSuiteConfigured()"]
  9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"]
  7743b165_45bc_382c_ec7a_7b9c39a9a9fe -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b
  bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"]
  7743b165_45bc_382c_ec7a_7b9c39a9a9fe -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8
  7380f50e_d3f0_3078_ee65_de1cb780c79d["handshake()"]
  7743b165_45bc_382c_ec7a_7b9c39a9a9fe -->|calls| 7380f50e_d3f0_3078_ee65_de1cb780c79d
  87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d["cleanupClientSslEngine()"]
  7743b165_45bc_382c_ec7a_7b9c39a9a9fe -->|calls| 87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d
  78ad5fe5_58d2_9877_f633_22a7048c0e5e["cleanupServerSslEngine()"]
  7743b165_45bc_382c_ec7a_7b9c39a9a9fe -->|calls| 78ad5fe5_58d2_9877_f633_22a7048c0e5e
  style 7743b165_45bc_382c_ec7a_7b9c39a9a9fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 4840–4875

    @Test
    public void testTLSv13EnabledIfNoCipherSuiteConfigured() throws Exception {
        SslProvider clientProvider = sslClientProvider();
        SslProvider serverProvider = sslServerProvider();
        if (!SslProvider.isTlsv13Supported(clientProvider) || !SslProvider.isTlsv13Supported(serverProvider)) {
            // TLSv1.3 is not supported by either client or server.
            return;
        }
        SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
        clientSslCtx = wrapContext(null, SslContextBuilder.forClient()
                .trustManager(InsecureTrustManagerFactory.INSTANCE)
                .sslProvider(sslClientProvider())
                .sslContextProvider(clientSslContextProvider())
                .protocols(SslProtocols.TLS_v1_3)
                .build());
        serverSslCtx = wrapContext(null, SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey())
                .sslProvider(sslServerProvider())
                .sslContextProvider(serverSslContextProvider())
                .protocols(SslProtocols.TLS_v1_3)
                .build());
        SSLEngine clientEngine = null;
        SSLEngine serverEngine = null;
        try {
            clientEngine = wrapEngine(clientSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
            serverEngine = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));

            // Doesn't matter what kind of buffertype is used for this test.
            handshake(BufferType.Direct, false, clientEngine, serverEngine);

            assertEquals(SslProtocols.TLS_v1_3, clientEngine.getSession().getProtocol());
            assertEquals(SslProtocols.TLS_v1_3, serverEngine.getSession().getProtocol());
        } finally {
            cleanupClientSslEngine(clientEngine);
            cleanupServerSslEngine(serverEngine);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testTLSv13EnabledIfNoCipherSuiteConfigured() do?
testTLSv13EnabledIfNoCipherSuiteConfigured() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testTLSv13EnabledIfNoCipherSuiteConfigured() defined?
testTLSv13EnabledIfNoCipherSuiteConfigured() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 4840.
What does testTLSv13EnabledIfNoCipherSuiteConfigured() call?
testTLSv13EnabledIfNoCipherSuiteConfigured() calls 4 function(s): cleanupClientSslEngine, cleanupServerSslEngine, handshake, protocols.

Analyze Your Own Codebase

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

Try Supermodel Free