Class OpenSsl
java.lang.Object
io.netty.handler.ssl.OpenSsl
Tells if
netty-tcnative and its OpenSSL support
are available.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns all the available cipher suites (Java-style).Returns all the available OpenSSL cipher suites.static voidEnsure thatnetty-tcnativeand its OpenSSL support are available.static booleanDeprecated.static booleanReturnstrueif and only ifnetty-tcnativeand its OpenSSL support are available.static booleanisCipherSuiteAvailable(String cipherSuite) Returnstrueif and only if the specified cipher suite is available in OpenSSL.static booleanReturnstrueif the used version of OpenSSL supports OCSP stapling.static booleanReturnstrueif the used version of OpenSSL supports renegotiation.static booleanDeprecated.Will be removed because hostname validation is always done by aTrustManagerimplementation.static booleanReturnstrueifKeyManagerFactoryis supported when using OpenSSL.static ThrowableReturns the cause of unavailability ofnetty-tcnativeand its OpenSSL support.static intversion()static StringReturns the version string of the used available OpenSSL library ornullifisAvailable()returnsfalse.
-
Method Details
-
isAvailable
public static boolean isAvailable()Returnstrueif and only ifnetty-tcnativeand its OpenSSL support are available. -
isAlpnSupported
Deprecated.Returnstrueif the used version of openssl supports ALPN. -
isOcspSupported
public static boolean isOcspSupported()Returnstrueif the used version of OpenSSL supports OCSP stapling. -
isRenegotiationSupported
public static boolean isRenegotiationSupported()Returnstrueif the used version of OpenSSL supports renegotiation.Some implementations, such as BoringSSL and AWS-LC, intentionally do not support renegotiation.
- Returns:
trueif renegotiation is supported, otherwisefalse.
-
version
public static int version() -
versionString
Returns the version string of the used available OpenSSL library ornullifisAvailable()returnsfalse. -
ensureAvailability
public static void ensureAvailability()Ensure thatnetty-tcnativeand its OpenSSL support are available.- Throws:
UnsatisfiedLinkError- if unavailable
-
availableCipherSuites
Deprecated. -
availableOpenSslCipherSuites
-
availableJavaCipherSuites
-
isCipherSuiteAvailable
Returnstrueif and only if the specified cipher suite is available in OpenSSL. Both Java-style cipher suite and OpenSSL-style cipher suite are accepted. -
supportsKeyManagerFactory
public static boolean supportsKeyManagerFactory()ReturnstrueifKeyManagerFactoryis supported when using OpenSSL. -
supportsHostnameValidation
Deprecated.Will be removed because hostname validation is always done by aTrustManagerimplementation.
-
availableOpenSslCipherSuites()