- java.lang.Object
-
- io.netty5.handler.ssl.CipherSuiteConverter
-
@UnstableApi public final class CipherSuiteConverter extends Object
Converts a Java cipher suite string to an OpenSSL cipher suite string and vice versa.- See Also:
- Wikipedia page about cipher suite
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toJava(String openSslCipherSuite, String protocol)
Convert from OpenSSL cipher suite name convention to java cipher suite name convention.static String
toOpenSsl(String javaCipherSuite, boolean boringSSL)
Converts the specified Java cipher suite to its corresponding OpenSSL cipher suite name.
-
-
-
Method Detail
-
toOpenSsl
public static String toOpenSsl(String javaCipherSuite, boolean boringSSL)
Converts the specified Java cipher suite to its corresponding OpenSSL cipher suite name.- Returns:
null
if the conversion has failed
-
toJava
public static String toJava(String openSslCipherSuite, String protocol)
Convert from OpenSSL cipher suite name convention to java cipher suite name convention.- Parameters:
openSslCipherSuite
- An OpenSSL cipher suite name.protocol
- The cryptographic protocol (i.e. SSL, TLS, ...).- Returns:
- The translated cipher suite name according to java conventions. This will not be
null
.
-
-