Home / Function/ testHandshakeCompletesWithoutFilteringSupportedCipher() — netty Function Reference

testHandshakeCompletesWithoutFilteringSupportedCipher() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  22054a12_fd53_a771_de5c_0b8aa8c31cd1["testHandshakeCompletesWithoutFilteringSupportedCipher()"]
  9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b
  e3b541e6_b593_4b1f_a637_da19020e73df["ciphers()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| e3b541e6_b593_4b1f_a637_da19020e73df
  bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8
  c7c3cffb_b0d6_d224_c30f_3668caf2c2f3["nonContiguousProtocols()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| c7c3cffb_b0d6_d224_c30f_3668caf2c2f3
  7380f50e_d3f0_3078_ee65_de1cb780c79d["handshake()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| 7380f50e_d3f0_3078_ee65_de1cb780c79d
  13aca077_a788_4333_9f8b_2b1437653846["delegate()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| 13aca077_a788_4333_9f8b_2b1437653846
  87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d["cleanupClientSslEngine()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| 87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d
  78ad5fe5_58d2_9877_f633_22a7048c0e5e["cleanupServerSslEngine()"]
  22054a12_fd53_a771_de5c_0b8aa8c31cd1 -->|calls| 78ad5fe5_58d2_9877_f633_22a7048c0e5e
  style 22054a12_fd53_a771_de5c_0b8aa8c31cd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 2297–2328

    @MethodSource("newTestParams")
    @ParameterizedTest
    public void testHandshakeCompletesWithoutFilteringSupportedCipher(SSLEngineTestParam param) throws Exception {
        SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
        // Select a mandatory cipher from the TLSv1.2 RFC https://www.ietf.org/rfc/rfc5246.txt so handshakes won't fail
        // due to no shared/supported cipher.
        final String sharedCipher = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256";
        clientSslCtx = wrapContext(param, SslContextBuilder.forClient()
                .trustManager(InsecureTrustManagerFactory.INSTANCE)
                .ciphers(Collections.singletonList(sharedCipher), SupportedCipherSuiteFilter.INSTANCE)
                .protocols(nonContiguousProtocols(sslClientProvider()))
                .sslContextProvider(clientSslContextProvider())
                .sslProvider(sslClientProvider())
                .build());

        serverSslCtx = wrapContext(param, SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey())
                .ciphers(Collections.singletonList(sharedCipher), SupportedCipherSuiteFilter.INSTANCE)
                .protocols(nonContiguousProtocols(sslServerProvider()))
                .sslContextProvider(serverSslContextProvider())
                .sslProvider(sslServerProvider())
                .build());
        SSLEngine clientEngine = null;
        SSLEngine serverEngine = null;
        try {
            clientEngine = wrapEngine(clientSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
            serverEngine = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
            handshake(param.type(), param.delegate(), clientEngine, serverEngine);
        } finally {
            cleanupClientSslEngine(clientEngine);
            cleanupServerSslEngine(serverEngine);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testHandshakeCompletesWithoutFilteringSupportedCipher() do?
testHandshakeCompletesWithoutFilteringSupportedCipher() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testHandshakeCompletesWithoutFilteringSupportedCipher() defined?
testHandshakeCompletesWithoutFilteringSupportedCipher() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 2297.
What does testHandshakeCompletesWithoutFilteringSupportedCipher() call?
testHandshakeCompletesWithoutFilteringSupportedCipher() calls 7 function(s): ciphers, cleanupClientSslEngine, cleanupServerSslEngine, delegate, handshake, nonContiguousProtocols, protocols.

Analyze Your Own Codebase

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

Try Supermodel Free