testEnablingAnAlreadyDisabledSslProtocol() — netty Function Reference
Architecture documentation for the testEnablingAnAlreadyDisabledSslProtocol() function in SSLEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e1532bb8_f828_8062_260d_c0dd59c2128d["testEnablingAnAlreadyDisabledSslProtocol()"] 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"] e1532bb8_f828_8062_260d_c0dd59c2128d -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"] e1532bb8_f828_8062_260d_c0dd59c2128d -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8 e3b541e6_b593_4b1f_a637_da19020e73df["ciphers()"] e1532bb8_f828_8062_260d_c0dd59c2128d -->|calls| e3b541e6_b593_4b1f_a637_da19020e73df 78ad5fe5_58d2_9877_f633_22a7048c0e5e["cleanupServerSslEngine()"] e1532bb8_f828_8062_260d_c0dd59c2128d -->|calls| 78ad5fe5_58d2_9877_f633_22a7048c0e5e style e1532bb8_f828_8062_260d_c0dd59c2128d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 1614–1650
protected void testEnablingAnAlreadyDisabledSslProtocol(SSLEngineTestParam param,
String[] protocols1, String[] protocols2) throws Exception {
SSLEngine sslEngine = null;
try {
File serverKeyFile = ResourcesUtil.getFile(getClass(), "test_unencrypted.pem");
File serverCrtFile = ResourcesUtil.getFile(getClass(), "test.crt");
serverSslCtx = wrapContext(param, SslContextBuilder.forServer(serverCrtFile, serverKeyFile)
.sslProvider(sslServerProvider())
.sslContextProvider(serverSslContextProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.build());
sslEngine = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
// Disable all protocols
sslEngine.setEnabledProtocols(EmptyArrays.EMPTY_STRINGS);
// The only protocol that should be enabled is SSLv2Hello
String[] enabledProtocols = sslEngine.getEnabledProtocols();
assertArrayEquals(protocols1, enabledProtocols);
// Enable a protocol that is currently disabled
sslEngine.setEnabledProtocols(new String[]{ SslProtocols.TLS_v1_2 });
// The protocol that was just enabled should be returned
enabledProtocols = sslEngine.getEnabledProtocols();
assertEquals(protocols2.length, enabledProtocols.length);
assertArrayEquals(protocols2, enabledProtocols);
} finally {
if (sslEngine != null) {
sslEngine.closeInbound();
sslEngine.closeOutbound();
cleanupServerSslEngine(sslEngine);
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testEnablingAnAlreadyDisabledSslProtocol() do?
testEnablingAnAlreadyDisabledSslProtocol() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testEnablingAnAlreadyDisabledSslProtocol() defined?
testEnablingAnAlreadyDisabledSslProtocol() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 1614.
What does testEnablingAnAlreadyDisabledSslProtocol() call?
testEnablingAnAlreadyDisabledSslProtocol() calls 3 function(s): ciphers, cleanupServerSslEngine, protocols.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free