TLSConfig

expect class TLSConfig
actual class TLSConfig

TLS configuration.

actual class TLSConfig

Constructors

Link copied to clipboard
fun TLSConfig(random: SecureRandom, certificates: List<CertificateAndKey>, trustManager: X509TrustManager, cipherSuites: List<CipherSuite>, serverName: String?)

Properties

Link copied to clipboard
val certificates: List<CertificateAndKey>

: list of client certificate chains with private keys.

Link copied to clipboard
val cipherSuites: List<CipherSuite>

: list of allowed CipherSuites.

Link copied to clipboard
val random: SecureRandom

: SecureRandom to use in encryption.

Link copied to clipboard
val serverName: String?

: custom server name for TLS server name extension.

Link copied to clipboard
val trustManager: X509TrustManager

: Custom X509TrustManager to verify server authority. Use system by default.