convertToCipherStrings() — netty Function Reference
Architecture documentation for the convertToCipherStrings() function in CipherSuiteConverter.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a6fae95d_bdc3_895d_0e4b_47df0b36a2c9["convertToCipherStrings()"] 943634e0_77f3_02c9_2c51_68b03859df87["CipherSuiteConverter"] a6fae95d_bdc3_895d_0e4b_47df0b36a2c9 -->|defined in| 943634e0_77f3_02c9_2c51_68b03859df87 style a6fae95d_bdc3_895d_0e4b_47df0b36a2c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/CipherSuiteConverter.java lines 479–513
static void convertToCipherStrings(Iterable<String> cipherSuites, StringBuilder cipherBuilder,
StringBuilder cipherTLSv13Builder, boolean boringSSL) {
for (String c: cipherSuites) {
if (c == null) {
break;
}
String converted = toOpenSsl(c, boringSSL);
if (converted == null) {
converted = c;
}
if (!OpenSsl.isCipherSuiteAvailable(converted)) {
throw new IllegalArgumentException("unsupported cipher suite: " + c + '(' + converted + ')');
}
if (SslUtils.isTLSv13Cipher(converted) || SslUtils.isTLSv13Cipher(c)) {
cipherTLSv13Builder.append(converted);
cipherTLSv13Builder.append(':');
} else {
cipherBuilder.append(converted);
cipherBuilder.append(':');
}
}
if (cipherBuilder.length() == 0 && cipherTLSv13Builder.length() == 0) {
throw new IllegalArgumentException("empty cipher suites");
}
if (cipherBuilder.length() > 0) {
cipherBuilder.setLength(cipherBuilder.length() - 1);
}
if (cipherTLSv13Builder.length() > 0) {
cipherTLSv13Builder.setLength(cipherTLSv13Builder.length() - 1);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does convertToCipherStrings() do?
convertToCipherStrings() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/CipherSuiteConverter.java.
Where is convertToCipherStrings() defined?
convertToCipherStrings() is defined in handler/src/main/java/io/netty/handler/ssl/CipherSuiteConverter.java at line 479.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free