Package org.wildfly.openssl
Class CipherSuiteConverter
java.lang.Object
org.wildfly.openssl.CipherSuiteConverter
Converts a Java cipher suite string to an OpenSSL cipher suite string and vice versa.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringConvert from OpenSSL cipher suite name convention to java cipher suite name convention.static StringConverts the specified Java cipher suites to the colon-separated OpenSSL cipher suite specification.static StringConverts the specified Java cipher suite to its corresponding OpenSSL cipher suite name.
-
Method Details
-
toOpenSsl
Converts the specified Java cipher suites to the colon-separated OpenSSL cipher suite specification. -
toOpenSsl
Converts the specified Java cipher suite to its corresponding OpenSSL cipher suite name.- Returns:
nullif the conversion has failed
-
toJava
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.
-