testSupportedCiphers() — netty Function Reference
Architecture documentation for the testSupportedCiphers() function in SslContextTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 78403bed_4f29_db87_a932_c054407d3276["testSupportedCiphers()"] a01749eb_679b_481b_5606_5c18a5630be5["SslContextTest"] 78403bed_4f29_db87_a932_c054407d3276 -->|defined in| a01749eb_679b_481b_5606_5c18a5630be5 style 78403bed_4f29_db87_a932_c054407d3276 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslContextTest.java lines 115–135
@Test
public void testSupportedCiphers() throws KeyManagementException, NoSuchAlgorithmException, SSLException {
SSLContext jdkSslContext = SSLContext.getInstance("TLS");
jdkSslContext.init(null, null, null);
SSLEngine sslEngine = jdkSslContext.createSSLEngine();
String unsupportedCipher = "TLS_DH_anon_WITH_DES_CBC_SHA";
IllegalArgumentException exception = null;
try {
sslEngine.setEnabledCipherSuites(new String[] {unsupportedCipher});
} catch (IllegalArgumentException e) {
exception = e;
}
assumeTrue(exception != null);
File keyFile = ResourcesUtil.getFile(getClass(), "test_unencrypted.pem");
File crtFile = ResourcesUtil.getFile(getClass(), "test.crt");
SslContext sslContext = newSslContext(crtFile, keyFile, null);
assertFalse(sslContext.cipherSuites().contains(unsupportedCipher));
ReferenceCountUtil.release(sslContext);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSupportedCiphers() do?
testSupportedCiphers() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslContextTest.java.
Where is testSupportedCiphers() defined?
testSupportedCiphers() is defined in handler/src/test/java/io/netty/handler/ssl/SslContextTest.java at line 115.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free