Home / Function/ testInvalidCipher() — netty Function Reference

testInvalidCipher() — netty Function Reference

Architecture documentation for the testInvalidCipher() function in SslContextBuilderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9c3293d9_7b9e_8b99_3861_e89ca4aaa01f["testInvalidCipher()"]
  a1363dc7_e5a9_fb44_bb34_1e17132005fa["SslContextBuilderTest"]
  9c3293d9_7b9e_8b99_3861_e89ca4aaa01f -->|defined in| a1363dc7_e5a9_fb44_bb34_1e17132005fa
  2bd4ac66_bac0_0212_0af7_1ed1aaf03b26["testInvalidCipherJdk()"]
  2bd4ac66_bac0_0212_0af7_1ed1aaf03b26 -->|calls| 9c3293d9_7b9e_8b99_3861_e89ca4aaa01f
  cbd9f017_5b38_ec79_4a4e_4944cfe709f7["testInvalidCipherOpenSSL()"]
  cbd9f017_5b38_ec79_4a4e_4944cfe709f7 -->|calls| 9c3293d9_7b9e_8b99_3861_e89ca4aaa01f
  style 9c3293d9_7b9e_8b99_3861_e89ca4aaa01f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java lines 275–287

    private static void testInvalidCipher(SslProvider provider) throws Exception {
        SelfSignedCertificate cert = CachedSelfSignedCertificate.getCachedCertificate();
        SslContextBuilder builder = SslContextBuilder.forClient()
                .sslProvider(provider)
                .ciphers(Collections.singleton("SOME_INVALID_CIPHER"))
                .keyManager(cert.certificate(),
                        cert.privateKey())
                .trustManager(cert.certificate());
        SslContext context = builder.build();
        SSLEngine engine = context.newEngine(UnpooledByteBufAllocator.DEFAULT);
        ReferenceCountUtil.release(engine);
        ReferenceCountUtil.release(context);
    }

Domain

Subdomains

Frequently Asked Questions

What does testInvalidCipher() do?
testInvalidCipher() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java.
Where is testInvalidCipher() defined?
testInvalidCipher() is defined in handler/src/test/java/io/netty/handler/ssl/SslContextBuilderTest.java at line 275.
What calls testInvalidCipher()?
testInvalidCipher() is called by 2 function(s): testInvalidCipherJdk, testInvalidCipherOpenSSL.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free