assumeCipherAvailable() — netty Function Reference
Architecture documentation for the assumeCipherAvailable() function in CipherSuiteCanaryTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 03e9881c_2c51_2a77_b993_13603c2ccfda["assumeCipherAvailable()"] ab6381a6_f969_6ff9_7dc9_1144730032e7["CipherSuiteCanaryTest"] 03e9881c_2c51_2a77_b993_13603c2ccfda -->|defined in| ab6381a6_f969_6ff9_7dc9_1144730032e7 87f631b4_7f6e_b2c2_60d6_d3e0f574ee13["testHandshake()"] 87f631b4_7f6e_b2c2_60d6_d3e0f574ee13 -->|calls| 03e9881c_2c51_2a77_b993_13603c2ccfda style 03e9881c_2c51_2a77_b993_13603c2ccfda fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/CipherSuiteCanaryTest.java lines 94–108
private static void assumeCipherAvailable(SslProvider provider, String cipher) throws NoSuchAlgorithmException {
boolean cipherSupported = false;
if (provider == SslProvider.JDK) {
SSLEngine engine = SSLContext.getDefault().createSSLEngine();
for (String c: engine.getSupportedCipherSuites()) {
if (cipher.equals(c)) {
cipherSupported = true;
break;
}
}
} else {
cipherSupported = OpenSsl.isCipherSuiteAvailable(cipher);
}
assumeTrue(cipherSupported, "Unsupported cipher: " + cipher);
}
Domain
Subdomains
Called By
Source
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/CipherSuiteCanaryTest.java.
Where is assumeCipherAvailable() defined?
assumeCipherAvailable() is defined in handler/src/test/java/io/netty/handler/ssl/CipherSuiteCanaryTest.java at line 94.
What calls assumeCipherAvailable()?
assumeCipherAvailable() is called by 1 function(s): testHandshake.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free