Class CipherSuiteConverter

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toJava​(java.lang.String openSslCipherSuite, java.lang.String protocol)
      Convert from OpenSSL cipher suite name convention to java cipher suite name convention.
      static java.lang.String toOpenSsl​(java.lang.String javaCipherSuite, boolean boringSSL)
      Converts the specified Java cipher suite to its corresponding OpenSSL cipher suite name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toOpenSsl

        public static java.lang.String toOpenSsl​(java.lang.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 java.lang.String toJava​(java.lang.String openSslCipherSuite,
                                              java.lang.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.