Home / Function/ assumeCipherAvailable() — netty Function Reference

assumeCipherAvailable() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java lines 124–138

    private static void assumeCipherAvailable(SslProvider provider) throws NoSuchAlgorithmException {
        boolean cipherSupported = false;
        if (provider == SslProvider.JDK) {
            SSLEngine engine = SSLContext.getDefault().createSSLEngine();
            for (String c: engine.getSupportedCipherSuites()) {
                if (RFC_CIPHER_NAME.equals(c)) {
                    cipherSupported = true;
                    break;
                }
            }
        } else {
            cipherSupported = OpenSsl.isCipherSuiteAvailable(RFC_CIPHER_NAME);
        }
        assumeTrue(cipherSupported, "Unsupported cipher: " + RFC_CIPHER_NAME);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free