TLSConfig

class TLSConfig

TLS configuration.

Constructors

<init>

TLSConfig(
    random: SecureRandom,
    certificates: List<CertificateAndKey>,
    trustManager: X509TrustManager,
    cipherSuites: List<CipherSuite>,
    serverName: String?)

TLS configuration.

Properties

certificates

val certificates: List<CertificateAndKey>

: list of client certificate chains with private keys.

cipherSuites

val cipherSuites: List<CipherSuite>

: list of allowed CipherSuites.

random

val random: SecureRandom

: SecureRandom to use in encryption.

serverName

val serverName: String?

: custom server name for TLS server name extension.

trustManager

val trustManager: X509TrustManager

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