getEnabledCipherSuites() — netty Function Reference
Architecture documentation for the getEnabledCipherSuites() function in ReferenceCountedOpenSslEngine.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5d28e123_a6b0_b540_a11c_88aa34c167ca["getEnabledCipherSuites()"] df1ad81e_e5bf_85e6_4418_db301b4c3e66["ReferenceCountedOpenSslEngine"] 5d28e123_a6b0_b540_a11c_88aa34c167ca -->|defined in| df1ad81e_e5bf_85e6_4418_db301b4c3e66 f3e3f180_c9e1_2c2f_b4a8_be9afb24dc37["isProtocolEnabled()"] 5d28e123_a6b0_b540_a11c_88aa34c167ca -->|calls| f3e3f180_c9e1_2c2f_b4a8_be9afb24dc37 style 5d28e123_a6b0_b540_a11c_88aa34c167ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java lines 1668–1705
@Override
public final String[] getEnabledCipherSuites() {
final String[] extraCiphers;
final String[] enabled;
final boolean tls13Enabled;
synchronized (this) {
if (!destroyed) {
enabled = SSL.getCiphers(ssl);
int opts = SSL.getOptions(ssl);
if (isProtocolEnabled(opts, SSL.SSL_OP_NO_TLSv1_3, SslProtocols.TLS_v1_3)) {
extraCiphers = OpenSsl.EXTRA_SUPPORTED_TLS_1_3_CIPHERS;
tls13Enabled = true;
} else {
extraCiphers = EMPTY_STRINGS;
tls13Enabled = false;
}
} else {
return EMPTY_STRINGS;
}
}
if (enabled == null) {
return EMPTY_STRINGS;
} else {
Set<String> enabledSet = new LinkedHashSet<>(enabled.length + extraCiphers.length);
synchronized (this) {
for (String enabledCipher : enabled) {
String mapped = toJavaCipherSuite(enabledCipher);
final String cipher = mapped == null ? enabledCipher : mapped;
if ((!tls13Enabled || !OpenSsl.isTlsv13Supported()) && SslUtils.isTLSv13Cipher(cipher)) {
continue;
}
enabledSet.add(cipher);
}
Collections.addAll(enabledSet, extraCiphers);
}
return enabledSet.toArray(EMPTY_STRINGS);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does getEnabledCipherSuites() do?
getEnabledCipherSuites() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java.
Where is getEnabledCipherSuites() defined?
getEnabledCipherSuites() is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java at line 1668.
What does getEnabledCipherSuites() call?
getEnabledCipherSuites() calls 1 function(s): isProtocolEnabled.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free