Home / Function/ testSessionCacheSize() — netty Function Reference

testSessionCacheSize() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 3505–3530

    @MethodSource("newTestParams")
    @ParameterizedTest
    public void testSessionCacheSize(SSLEngineTestParam param) throws Exception {
        clientSslCtx = wrapContext(param, SslContextBuilder.forClient()
                .trustManager(InsecureTrustManagerFactory.INSTANCE)
                .sslProvider(sslClientProvider())
                .sslContextProvider(clientSslContextProvider())
                .protocols(param.protocols())
                .ciphers(param.ciphers())
                .sessionCacheSize(1)
                .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);
        // As we have a cache size of 1 we should never have more then one session in the cache
        doHandshakeVerifyReusedAndClose(param, "b.netty.io", 9999, false);

        // We should at least reuse b.netty.io
        doHandshakeVerifyReusedAndClose(param, "b.netty.io", 9999, true);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free