接口 SslOptions
public interface SslOptions
Configuration options that should be applied when establishing an SSL connection.
- 从以下版本开始:
- 3.1.0
- 作者:
- Scott Frederick
- 另请参阅:
-
字段概要
字段 -
方法概要
修饰符和类型方法说明Helper method that provides a null-safe way to convert aString[]
to aCollection
for client libraries to use.String[]
Return the ciphers that can be used or an empty set.String[]
Return the protocols that should be enabled or an empty set.default boolean
Return if any SSL options have been specified.static SslOptions
Factory method to create a newSslOptions
instance.static SslOptions
Factory method to create a newSslOptions
instance.
-
字段详细资料
-
NONE
SslOptions
that returnsnull
results.
-
-
方法详细资料
-
isSpecified
default boolean isSpecified()Return if any SSL options have been specified.- 返回:
true
if SSL options have been specified
-
getCiphers
String[] getCiphers()Return the ciphers that can be used or an empty set. The cipher names in this set should be compatible with those supported bySSLEngine.getSupportedCipherSuites()
.- 返回:
- the ciphers that can be used or
null
-
getEnabledProtocols
String[] getEnabledProtocols()Return the protocols that should be enabled or an empty set. The protocols names in this set should be compatible with those supported bySSLEngine.getSupportedProtocols()
.- 返回:
- the protocols to enable or
null
-
of
Factory method to create a newSslOptions
instance.- 参数:
ciphers
- the ciphersenabledProtocols
- the enabled protocols- 返回:
- a new
SslOptions
instance
-
of
Factory method to create a newSslOptions
instance.- 参数:
ciphers
- the ciphersenabledProtocols
- the enabled protocols- 返回:
- a new
SslOptions
instance
-
asSet
Helper method that provides a null-safe way to convert aString[]
to aCollection
for client libraries to use.- 参数:
array
- the array to convert- 返回:
- a collection or
null
-