testServerContext() — netty Function Reference
Architecture documentation for the testServerContext() function in SslContextBuilderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 45bfc424_b60f_c677_bf79_e458456ee88d["testServerContext()"] a1363dc7_e5a9_fb44_bb34_1e17132005fa["SslContextBuilderTest"] 45bfc424_b60f_c677_bf79_e458456ee88d -->|defined in| a1363dc7_e5a9_fb44_bb34_1e17132005fa 843fcdf2_4b44_932c_f093_ab231970c1b5["testServerContextJdk()"] 843fcdf2_4b44_932c_f093_ab231970c1b5 -->|calls| 45bfc424_b60f_c677_bf79_e458456ee88d f63a791c_ed91_c5c9_27d0_1f50eff920d4["testServerContextOpenssl()"] f63a791c_ed91_c5c9_27d0_1f50eff920d4 -->|calls| 45bfc424_b60f_c677_bf79_e458456ee88d style 45bfc424_b60f_c677_bf79_e458456ee88d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java lines 340–354
private static void testServerContext(SslProvider provider) throws Exception {
SelfSignedCertificate cert = CachedSelfSignedCertificate.getCachedCertificate();
SslContextBuilder builder = SslContextBuilder.forServer(cert.key(), cert.cert())
.sslProvider(provider)
.trustManager(cert.cert())
.clientAuth(ClientAuth.REQUIRE);
SslContext context = builder.build();
SSLEngine engine = context.newEngine(UnpooledByteBufAllocator.DEFAULT);
assertFalse(engine.getWantClientAuth());
assertTrue(engine.getNeedClientAuth());
engine.closeInbound();
engine.closeOutbound();
ReferenceCountUtil.release(engine);
ReferenceCountUtil.release(context);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testServerContext() do?
testServerContext() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java.
Where is testServerContext() defined?
testServerContext() is defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java at line 340.
What calls testServerContext()?
testServerContext() is called by 2 function(s): testServerContextJdk, testServerContextOpenssl.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free