OkHttpEngineConfig
The configuration parameters for an OkHttp HTTP client engine.
Types
Properties
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.
List of cipher suites to enable for TLS connections. If null, uses OkHttp defaults. When specified, only the listed cipher suites will be enabled.
The interval in which to poll idle connections for remote closure or null
to disable monitoring of idle connections. The default value is null
.
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.
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.
The maximum number of requests to execute concurrently for a single host.
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.