Home / Function/ testAlgorithmCaching() — netty Function Reference

testAlgorithmCaching() — netty Function Reference

Architecture documentation for the testAlgorithmCaching() function in JdkDelegatingPrivateKeyMethodTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0e81c0c6_ea19_d890_9809_f0b732afecda["testAlgorithmCaching()"]
  2ac7122d_91ea_6ce8_76a0_fb9ed7fcbdbc["JdkDelegatingPrivateKeyMethodTest"]
  0e81c0c6_ea19_d890_9809_f0b732afecda -->|defined in| 2ac7122d_91ea_6ce8_76a0_fb9ed7fcbdbc
  style 0e81c0c6_ea19_d890_9809_f0b732afecda fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethodTest.java lines 349–372

    @Test
    void testAlgorithmCaching() throws Exception {
        // Create a key for testing
        PrivateKey alternativeKey = wrapPrivateKey(RSA_BUNDLE.getKeyPair().getPrivate());

        MockAlternativeKeyProvider.resetSignatureOperationCount();

        // Create SSL contexts multiple times - provider caching should work
        SslContext context1 = SslContextBuilder.forServer(alternativeKey, RSA_BUNDLE.getCertificate())
            .sslProvider(SslProvider.OPENSSL)
            .option(OpenSslContextOption.USE_JDK_PROVIDER_SIGNATURES, true)
            .build();

        SslContext context2 = SslContextBuilder.forServer(alternativeKey, RSA_BUNDLE.getCertificate())
            .sslProvider(SslProvider.OPENSSL)
            .option(OpenSslContextOption.USE_JDK_PROVIDER_SIGNATURES, true)
            .build();

        assertNotNull(context1, "First context should be created");
        assertNotNull(context2, "Second context should be created");

        ReferenceCountUtil.release(context1);
        ReferenceCountUtil.release(context2);
    }

Domain

Subdomains

Frequently Asked Questions

What does testAlgorithmCaching() do?
testAlgorithmCaching() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethodTest.java.
Where is testAlgorithmCaching() defined?
testAlgorithmCaching() is defined in handler/src/test/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethodTest.java at line 349.

Analyze Your Own Codebase

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

Try Supermodel Free