Home / Function/ init() — netty Function Reference

init() — netty Function Reference

Architecture documentation for the init() function in OpenSslPrivateKeyMethodTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  10e92c16_4654_b4b4_d1d4_55c3fe8ee82c["init()"]
  e0537394_11f7_7d84_df6a_7390455b871b["OpenSslPrivateKeyMethodTest"]
  10e92c16_4654_b4b4_d1d4_55c3fe8ee82c -->|defined in| e0537394_11f7_7d84_df6a_7390455b871b
  63310003_98c5_4569_fb36_d807a91e6f72["assumeCipherAvailable()"]
  10e92c16_4654_b4b4_d1d4_55c3fe8ee82c -->|calls| 63310003_98c5_4569_fb36_d807a91e6f72
  03ee458c_000c_e7e6_4f78_d0c6d04acb35["DelegateThread()"]
  10e92c16_4654_b4b4_d1d4_55c3fe8ee82c -->|calls| 03ee458c_000c_e7e6_4f78_d0c6d04acb35
  style 10e92c16_4654_b4b4_d1d4_55c3fe8ee82c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java lines 92–114

    @BeforeAll
    public static void init() throws Exception {
        checkShouldUseKeyManagerFactory();

        assumeTrue(OpenSsl.isBoringSSL() || OpenSsl.isAWSLC());
        // Check if the cipher is supported at all which may not be the case for various JDK versions and OpenSSL API
        // implementations.
        assumeCipherAvailable(SslProvider.OPENSSL);
        assumeCipherAvailable(SslProvider.JDK);

        GROUP = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
        CERT = new CertificateBuilder()
                .rsa2048()
                .subject("cn=localhost")
                .setIsCertificateAuthority(true)
                .buildSelfSigned();
        EXECUTOR = new DelayingExecutor(new ThreadFactory() {
            @Override
            public Thread newThread(Runnable r) {
                return new DelegateThread(r);
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does init() do?
init() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java.
Where is init() defined?
init() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java at line 92.
What does init() call?
init() calls 2 function(s): DelegateThread, assumeCipherAvailable.

Analyze Your Own Codebase

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

Try Supermodel Free