java.lang.Object
org.miaixz.bus.http.accord.ConnectionSuite.Builder
- Enclosing class:
ConnectionSuite
A builder for creating
ConnectionSuite instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfigures the connection to use all enabled cipher suites of the SSL socket.Configures the connection to use all enabled TLS versions of the SSL socket.build()Builds a newConnectionSuiteinstance.cipherSuites(String... cipherSuites) Configures the connection to use the specified cipher suites by their Java names.cipherSuites(CipherSuite... cipherSuites) Configures the connection to use the specified cipher suites.supportsTlsExtensions(boolean supportsTlsExtensions) Configures whether TLS extensions like Server Name Indication (SNI) and Application-Layer Protocol Negotiation (ALPN) should be used.tlsVersions(String... tlsVersions) Configures the connection to use the specified TLS versions by their Java names.tlsVersions(org.miaixz.bus.core.net.tls.TlsVersion... tlsVersions) Configures the connection to use the specified TLS versions.
-
Constructor Details
-
Builder
-
-
Method Details
-
allEnabledCipherSuites
Configures the connection to use all enabled cipher suites of the SSL socket.- Returns:
- this builder.
-
cipherSuites
Configures the connection to use the specified cipher suites.- Parameters:
cipherSuites- The cipher suites to use.- Returns:
- this builder.
-
cipherSuites
Configures the connection to use the specified cipher suites by their Java names.- Parameters:
cipherSuites- The Java names of the cipher suites to use.- Returns:
- this builder.
-
allEnabledTlsVersions
Configures the connection to use all enabled TLS versions of the SSL socket.- Returns:
- this builder.
-
tlsVersions
Configures the connection to use the specified TLS versions.- Parameters:
tlsVersions- The TLS versions to use.- Returns:
- this builder.
-
tlsVersions
Configures the connection to use the specified TLS versions by their Java names.- Parameters:
tlsVersions- The Java names of the TLS versions to use.- Returns:
- this builder.
-
supportsTlsExtensions
Configures whether TLS extensions like Server Name Indication (SNI) and Application-Layer Protocol Negotiation (ALPN) should be used.- Parameters:
supportsTlsExtensions-trueto support TLS extensions.- Returns:
- this builder.
-
build
Builds a newConnectionSuiteinstance.- Returns:
- A new
ConnectionSuiteinstance.
-