接口 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 aCollectionfor 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 booleanReturn if any SSL options have been specified.static SslOptionsFactory method to create a newSslOptionsinstance.static SslOptionsFactory method to create a newSslOptionsinstance.
-
字段详细资料
-
NONE
SslOptionsthat returnsnullresults.
-
-
方法详细资料
-
isSpecified
default boolean isSpecified()Return if any SSL options have been specified.- 返回:
trueif 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 newSslOptionsinstance.- 参数:
ciphers- the ciphersenabledProtocols- the enabled protocols- 返回:
- a new
SslOptionsinstance
-
of
Factory method to create a newSslOptionsinstance.- 参数:
ciphers- the ciphersenabledProtocols- the enabled protocols- 返回:
- a new
SslOptionsinstance
-
asSet
Helper method that provides a null-safe way to convert aString[]to aCollectionfor client libraries to use.- 参数:
array- the array to convert- 返回:
- a collection or
null
-