testEnabledProtocolsAndCiphers() — netty Function Reference
Architecture documentation for the testEnabledProtocolsAndCiphers() function in SSLEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a20135b0_7084_04eb_4dee_f066493b6631["testEnabledProtocolsAndCiphers()"] 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"] a20135b0_7084_04eb_4dee_f066493b6631 -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8 e3b541e6_b593_4b1f_a637_da19020e73df["ciphers()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| e3b541e6_b593_4b1f_a637_da19020e73df 7380f50e_d3f0_3078_ee65_de1cb780c79d["handshake()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| 7380f50e_d3f0_3078_ee65_de1cb780c79d 13aca077_a788_4333_9f8b_2b1437653846["delegate()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| 13aca077_a788_4333_9f8b_2b1437653846 fc2fce7a_e908_62bc_a899_8bedf99c4e4e["assertEnabledProtocolsAndCipherSuites()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| fc2fce7a_e908_62bc_a899_8bedf99c4e4e 87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d["cleanupClientSslEngine()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| 87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d 78ad5fe5_58d2_9877_f633_22a7048c0e5e["cleanupServerSslEngine()"] a20135b0_7084_04eb_4dee_f066493b6631 -->|calls| 78ad5fe5_58d2_9877_f633_22a7048c0e5e style a20135b0_7084_04eb_4dee_f066493b6631 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 4472–4501
@MethodSource("newTestParams")
@ParameterizedTest
public void testEnabledProtocolsAndCiphers(SSLEngineTestParam param) throws Exception {
clientSslCtx = wrapContext(param, SslContextBuilder.forClient()
.trustManager(InsecureTrustManagerFactory.INSTANCE)
.sslProvider(sslClientProvider())
.sslContextProvider(clientSslContextProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.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());
SSLEngine clientEngine = null;
SSLEngine serverEngine = null;
try {
clientEngine = wrapEngine(clientSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
serverEngine = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
handshake(param.type(), param.delegate(), clientEngine, serverEngine);
assertEnabledProtocolsAndCipherSuites(clientEngine);
assertEnabledProtocolsAndCipherSuites(serverEngine);
} finally {
cleanupClientSslEngine(clientEngine);
cleanupServerSslEngine(serverEngine);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testEnabledProtocolsAndCiphers() do?
testEnabledProtocolsAndCiphers() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testEnabledProtocolsAndCiphers() defined?
testEnabledProtocolsAndCiphers() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 4472.
What does testEnabledProtocolsAndCiphers() call?
testEnabledProtocolsAndCiphers() calls 7 function(s): assertEnabledProtocolsAndCipherSuites, ciphers, cleanupClientSslEngine, cleanupServerSslEngine, delegate, handshake, protocols.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free