public enum SslProvider extends java.lang.Enum<SslProvider>
枚举常量和说明 |
---|
JDK
JDK's default implementation.
|
OPENSSL
OpenSSL-based implementation.
|
OPENSSL_REFCNT
OpenSSL-based implementation which does not have finalizers and instead implements
ReferenceCounted . |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
isAlpnSupported(SslProvider provider)
|
static boolean |
isOptionSupported(SslProvider sslProvider,
SslContextOption<?> option)
|
static boolean |
isTlsv13Supported(SslProvider sslProvider)
|
static boolean |
isTlsv13Supported(SslProvider sslProvider,
java.security.Provider provider)
|
static SslProvider |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SslProvider[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SslProvider JDK
public static final SslProvider OPENSSL
@UnstableApi public static final SslProvider OPENSSL_REFCNT
ReferenceCounted
.public static SslProvider[] values()
for (SslProvider c : SslProvider.values()) System.out.println(c);
public static SslProvider valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static boolean isAlpnSupported(SslProvider provider)
public static boolean isTlsv13Supported(SslProvider sslProvider)
public static boolean isTlsv13Supported(SslProvider sslProvider, java.security.Provider provider)
public static boolean isOptionSupported(SslProvider sslProvider, SslContextOption<?> option)