Module bus.http

Class ConnectionSuite.Builder

java.lang.Object
org.miaixz.bus.http.accord.ConnectionSuite.Builder
Enclosing class:
ConnectionSuite

public static final class ConnectionSuite.Builder extends Object
A builder for creating ConnectionSuite instances.
  • Constructor Details

  • Method Details

    • allEnabledCipherSuites

      public ConnectionSuite.Builder allEnabledCipherSuites()
      Configures the connection to use all enabled cipher suites of the SSL socket.
      Returns:
      this builder.
    • cipherSuites

      public ConnectionSuite.Builder cipherSuites(CipherSuite... cipherSuites)
      Configures the connection to use the specified cipher suites.
      Parameters:
      cipherSuites - The cipher suites to use.
      Returns:
      this builder.
    • cipherSuites

      public ConnectionSuite.Builder cipherSuites(String... 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

      public ConnectionSuite.Builder allEnabledTlsVersions()
      Configures the connection to use all enabled TLS versions of the SSL socket.
      Returns:
      this builder.
    • tlsVersions

      public ConnectionSuite.Builder tlsVersions(org.miaixz.bus.core.net.tls.TlsVersion... tlsVersions)
      Configures the connection to use the specified TLS versions.
      Parameters:
      tlsVersions - The TLS versions to use.
      Returns:
      this builder.
    • tlsVersions

      public ConnectionSuite.Builder tlsVersions(String... 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

      public ConnectionSuite.Builder supportsTlsExtensions(boolean supportsTlsExtensions)
      Configures whether TLS extensions like Server Name Indication (SNI) and Application-Layer Protocol Negotiation (ALPN) should be used.
      Parameters:
      supportsTlsExtensions - true to support TLS extensions.
      Returns:
      this builder.
    • build

      public ConnectionSuite build()
      Builds a new ConnectionSuite instance.
      Returns:
      A new ConnectionSuite instance.