Home / Function/ testClientContext() — netty Function Reference

testClientContext() — netty Function Reference

Architecture documentation for the testClientContext() function in SslContextBuilderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8d8819e6_f98e_bb71_ebc7_2fd8373e2abf["testClientContext()"]
  a1363dc7_e5a9_fb44_bb34_1e17132005fa["SslContextBuilderTest"]
  8d8819e6_f98e_bb71_ebc7_2fd8373e2abf -->|defined in| a1363dc7_e5a9_fb44_bb34_1e17132005fa
  30492fba_88ec_70eb_98a2_f8bb44808143["testClientContextJdk()"]
  30492fba_88ec_70eb_98a2_f8bb44808143 -->|calls| 8d8819e6_f98e_bb71_ebc7_2fd8373e2abf
  149c9764_5572_85e3_0932_2f950d740450["testClientContextOpenssl()"]
  149c9764_5572_85e3_0932_2f950d740450 -->|calls| 8d8819e6_f98e_bb71_ebc7_2fd8373e2abf
  style 8d8819e6_f98e_bb71_ebc7_2fd8373e2abf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java lines 307–322

    private static void testClientContext(SslProvider provider) throws Exception {
        SelfSignedCertificate cert = CachedSelfSignedCertificate.getCachedCertificate();
        SslContextBuilder builder = SslContextBuilder.forClient()
                                                     .sslProvider(provider)
                                                     .keyManager(cert.key(), cert.cert())
                                                     .trustManager(cert.cert())
                                                     .clientAuth(ClientAuth.OPTIONAL);
        SslContext context = builder.build();
        SSLEngine engine = context.newEngine(UnpooledByteBufAllocator.DEFAULT);
        assertFalse(engine.getWantClientAuth());
        assertFalse(engine.getNeedClientAuth());
        engine.closeInbound();
        engine.closeOutbound();
        ReferenceCountUtil.release(engine);
        ReferenceCountUtil.release(context);
    }

Domain

Subdomains

Frequently Asked Questions

What does testClientContext() do?
testClientContext() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java.
Where is testClientContext() defined?
testClientContext() is defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java at line 307.
What calls testClientContext()?
testClientContext() is called by 2 function(s): testClientContextJdk, testClientContextOpenssl.

Analyze Your Own Codebase

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

Try Supermodel Free