java.lang.Object
org.newsclub.net.unix.ssl.SSLParametersUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
disableCipherSuites
(SSLParameters params, String... cipherSuites) Removes the given cipher suites from the set of cipher suites specified in anSSLParameters
instance.static void
disableProtocols
(SSLParameters params, String... protocols) Removes the given protocols from the set of protocols specified in anSSLParameters
instance.static void
setSNIMatcher
(SSLSocket s, SNIMatcher matcher) Sets anSNIMatcher
instance with the parameters of the givenSSLSocket
(which should be in server mode).static void
setSNIServerName
(SSLSocket s, SNIServerName name) Sets the desired SNI server name with the parameters of the givenSSLSocket
(which should be in client mode).
-
Method Details
-
disableProtocols
Removes the given protocols from the set of protocols specified in anSSLParameters
instance.- Parameters:
params
- The parameters instance to configure.protocols
- The protocols to disable.
-
disableCipherSuites
Removes the given cipher suites from the set of cipher suites specified in anSSLParameters
instance.- Parameters:
params
- The parameters instance to configure.cipherSuites
- The protocols to disable.
-
setSNIMatcher
Sets anSNIMatcher
instance with the parameters of the givenSSLSocket
(which should be in server mode).- Parameters:
s
- The socket to modify.matcher
- The matcher.
-
setSNIServerName
Sets the desired SNI server name with the parameters of the givenSSLSocket
(which should be in client mode).- Parameters:
s
- The socket to modify.name
- The name.
-