public final class OpenSsl
extends java.lang.Object
netty-tcnative
and its OpenSSL support
are available.限定符和类型 | 方法和说明 |
---|---|
static java.util.Set<java.lang.String> |
availableCipherSuites()
已过时。
|
static java.util.Set<java.lang.String> |
availableJavaCipherSuites()
Returns all the available cipher suites (Java-style).
|
static java.util.Set<java.lang.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()
已过时。
|
static boolean |
isAvailable()
Returns
true if and only if
netty-tcnative and its OpenSSL support
are available. |
static boolean |
isCipherSuiteAvailable(java.lang.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()
已过时。
Will be removed because hostname validation is always done by a
TrustManager implementation. |
static boolean |
supportsKeyManagerFactory()
Returns
true if KeyManagerFactory is supported when using OpenSSL. |
static java.lang.Throwable |
unavailabilityCause()
Returns the cause of unavailability of
netty-tcnative and its OpenSSL support. |
static int |
version()
|
static java.lang.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.@Deprecated public static boolean isAlpnSupported()
SslProvider.isAlpnSupported(SslProvider)
with SslProvider.OPENSSL
.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 java.lang.String versionString()
null
if isAvailable()
returns false
.public static void ensureAvailability()
netty-tcnative
and
its OpenSSL support are available.java.lang.UnsatisfiedLinkError
- if unavailablepublic static java.lang.Throwable unavailabilityCause()
netty-tcnative
and its OpenSSL support.null
if available.@Deprecated public static java.util.Set<java.lang.String> availableCipherSuites()
availableOpenSslCipherSuites()
public static java.util.Set<java.lang.String> availableOpenSslCipherSuites()
public static java.util.Set<java.lang.String> availableJavaCipherSuites()
public static boolean isCipherSuiteAvailable(java.lang.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.@Deprecated public static boolean supportsHostnameValidation()
TrustManager
implementation.