Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var certificatePinner: CertificatePinner?

Certificate pinner that validates server certificates against known public key pins. Used to prevent man-in-the-middle attacks by ensuring the server presents expected certificates.

Link copied to clipboard

List of cipher suites to enable for TLS connections. If null, uses OkHttp defaults. When specified, only the listed cipher suites will be enabled.

Link copied to clipboard

The interval in which to poll idle connections for remote closure or null to disable monitoring of idle connections. The default value is null.

Link copied to clipboard

Custom hostname verifier for validating server hostnames during TLS handshake. By default, OkHttp verifies that the certificate's hostname matches the request hostname. Use this to implement custom hostname verification logic.

Link copied to clipboard

Key manager that supplies client certificates for mutual TLS (mTLS) authentication. When provided, the client will present certificates from this key manager when the server requests client authentication. Used for scenarios requiring client certificate authentication.

Link copied to clipboard

The maximum number of requests to execute concurrently for a single host. Defaults to maxConcurrency.

Link copied to clipboard
Link copied to clipboard

Trust manager used to validate server certificates during TLS handshake. Determines whether to trust the certificate chain presented by a remote server. When provided, this trust manager will be used instead of the default system trust store.

Inherited properties

Link copied to clipboard
Link copied to clipboard
open override var connectionIdleTimeout: Duration
Link copied to clipboard
open override var connectTimeout: Duration
Link copied to clipboard
open override var hostResolver: HostResolver
Link copied to clipboard
open override var maxConcurrency: UInt
Link copied to clipboard
open override var proxySelector: ProxySelector
Link copied to clipboard
open override var socketReadTimeout: Duration
Link copied to clipboard
open override var socketWriteTimeout: Duration
Link copied to clipboard
open override var tlsContext: TlsContext

Inherited functions

Link copied to clipboard
open override fun tlsContext(block: TlsContext.Builder.() -> Unit)