Class CipherSuiteConverter

java.lang.Object
io.netty.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:
  • Method Details

    • 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 (or null if translation was not possible).