Home / Function/ testSessionCache() — netty Function Reference

testSessionCache() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  98846a7d_40bd_bbdd_3c36_d1979088d64c["testSessionCache()"]
  9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"]
  98846a7d_40bd_bbdd_3c36_d1979088d64c -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b
  bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"]
  98846a7d_40bd_bbdd_3c36_d1979088d64c -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8
  e3b541e6_b593_4b1f_a637_da19020e73df["ciphers()"]
  98846a7d_40bd_bbdd_3c36_d1979088d64c -->|calls| e3b541e6_b593_4b1f_a637_da19020e73df
  5b1aff79_52fd_e366_c29d_676e7d63d1e6["doHandshakeVerifyReusedAndClose()"]
  98846a7d_40bd_bbdd_3c36_d1979088d64c -->|calls| 5b1aff79_52fd_e366_c29d_676e7d63d1e6
  d90b88cc_f6fc_5807_e480_8715f74a8d78["invalidateSessionsAndAssert()"]
  98846a7d_40bd_bbdd_3c36_d1979088d64c -->|calls| d90b88cc_f6fc_5807_e480_8715f74a8d78
  style 98846a7d_40bd_bbdd_3c36_d1979088d64c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 3232–3255

    @MethodSource("newTestParams")
    @ParameterizedTest
    public void testSessionCache(SSLEngineTestParam param) throws Exception {
        clientSslCtx = wrapContext(param, SslContextBuilder.forClient()
                .trustManager(InsecureTrustManagerFactory.INSTANCE)
                .sslProvider(sslClientProvider())
                .sslContextProvider(clientSslContextProvider())
                .protocols(param.protocols())
                .ciphers(param.ciphers())
                .build());
        SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
        serverSslCtx = wrapContext(param, SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey())
                .sslProvider(sslServerProvider())
                .sslContextProvider(serverSslContextProvider())
                .protocols(param.protocols())
                .ciphers(param.ciphers())
                .build());

        doHandshakeVerifyReusedAndClose(param, "a.netty.io", 9999, false);
        doHandshakeVerifyReusedAndClose(param, "a.netty.io", 9999, true);
        doHandshakeVerifyReusedAndClose(param, "b.netty.io", 9999, false);
        invalidateSessionsAndAssert(serverSslCtx.sessionContext());
        invalidateSessionsAndAssert(clientSslCtx.sessionContext());
    }

Domain

Subdomains

Frequently Asked Questions

What does testSessionCache() do?
testSessionCache() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testSessionCache() defined?
testSessionCache() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 3232.
What does testSessionCache() call?
testSessionCache() calls 4 function(s): ciphers, doHandshakeVerifyReusedAndClose, invalidateSessionsAndAssert, protocols.

Analyze Your Own Codebase

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

Try Supermodel Free