public final class OpenSsl extends Object
netty-tcnative
and its OpenSSL support
are available.Modifier and Type | Method and Description |
---|---|
static Set<String> |
availableCipherSuites()
Deprecated.
|
static Set<String> |
availableJavaCipherSuites()
Returns all the available cipher suites (Java-style).
|
static Set<String> |
availableOpenSslCipherSuites()
Returns all the available OpenSSL cipher suites.
|
static void |
ensureAvailability()
Ensure that
netty-tcnative and
its OpenSSL support are available. |
static boolean |
isAlpnSupported()
Returns
true if the used version of openssl supports
ALPN. |
static boolean |
isAvailable()
Returns
true if and only if
netty-tcnative and its OpenSSL support
are available. |
static boolean |
isCipherSuiteAvailable(String cipherSuite)
Returns
true if and only if the specified cipher suite is available in OpenSSL. |
static boolean |
isOcspSupported()
Returns
true if the used version of OpenSSL supports OCSP stapling. |
static boolean |
supportsHostnameValidation()
Returns
true if Hostname Validation
is supported when using OpenSSL. |
static boolean |
supportsKeyManagerFactory()
Returns
true if KeyManagerFactory is supported when using OpenSSL. |
static Throwable |
unavailabilityCause()
Returns the cause of unavailability of
netty-tcnative and its OpenSSL support. |
static int |
version()
|
static String |
versionString()
Returns the version string of the used available OpenSSL library or
null if isAvailable()
returns false . |
public static boolean isAvailable()
true
if and only if
netty-tcnative
and its OpenSSL support
are available.public static boolean isAlpnSupported()
true
if the used version of openssl supports
ALPN.public static boolean isOcspSupported()
true
if the used version of OpenSSL supports OCSP stapling.public static int version()
public static String versionString()
null
if isAvailable()
returns false
.public static void ensureAvailability()
netty-tcnative
and
its OpenSSL support are available.UnsatisfiedLinkError
- if unavailablepublic static Throwable unavailabilityCause()
netty-tcnative
and its OpenSSL support.null
if available.@Deprecated public static Set<String> availableCipherSuites()
availableOpenSslCipherSuites()
public static Set<String> availableOpenSslCipherSuites()
public static Set<String> availableJavaCipherSuites()
public static boolean isCipherSuiteAvailable(String cipherSuite)
true
if and only if the specified cipher suite is available in OpenSSL.
Both Java-style cipher suite and OpenSSL-style cipher suite are accepted.public static boolean supportsKeyManagerFactory()
true
if KeyManagerFactory
is supported when using OpenSSL.public static boolean supportsHostnameValidation()
true
if Hostname Validation
is supported when using OpenSSL.Copyright © 2008–2017 The Netty Project. All rights reserved.