testClientContextFromFile() — netty Function Reference
Architecture documentation for the testClientContextFromFile() function in SslContextBuilderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 431905e7_f76f_9c28_45d6_f3f306840bed["testClientContextFromFile()"] a1363dc7_e5a9_fb44_bb34_1e17132005fa["SslContextBuilderTest"] 431905e7_f76f_9c28_45d6_f3f306840bed -->|defined in| a1363dc7_e5a9_fb44_bb34_1e17132005fa 98bd0606_6db9_04f0_3335_6956d498f7e9["testClientContextFromFileJdk()"] 98bd0606_6db9_04f0_3335_6956d498f7e9 -->|calls| 431905e7_f76f_9c28_45d6_f3f306840bed d743dc48_ae66_8877_b061_a3e703f7efea["testClientContextFromFileOpenssl()"] d743dc48_ae66_8877_b061_a3e703f7efea -->|calls| 431905e7_f76f_9c28_45d6_f3f306840bed style 431905e7_f76f_9c28_45d6_f3f306840bed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java lines 289–305
private static void testClientContextFromFile(SslProvider provider) throws Exception {
SelfSignedCertificate cert = CachedSelfSignedCertificate.getCachedCertificate();
SslContextBuilder builder = SslContextBuilder.forClient()
.sslProvider(provider)
.keyManager(cert.certificate(),
cert.privateKey())
.trustManager(cert.certificate())
.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
Source
Frequently Asked Questions
What does testClientContextFromFile() do?
testClientContextFromFile() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java.
Where is testClientContextFromFile() defined?
testClientContextFromFile() is defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java at line 289.
What calls testClientContextFromFile()?
testClientContextFromFile() is called by 2 function(s): testClientContextFromFileJdk, testClientContextFromFileOpenssl.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free