TLSConfigBuilder

expect class TLSConfigBuilder

TLSConfig builder.

actual class TLSConfigBuilder

TLSConfig builder.

actual class TLSConfigBuilder

TLSConfig builder.

Constructors

Link copied to clipboard
expect constructor()
constructor()
constructor()

Properties

Link copied to clipboard

List of client certificate chains with private keys.

Link copied to clipboard

List of allowed CipherSuites.

Link copied to clipboard

SecureRandom to use in encryption.

Link copied to clipboard
expect var serverName: String?

Custom server name for TLS server name extension. See also: https://en.wikipedia.org/wiki/Server_Name_Indication

actual var serverName: String?

Custom server name for TLS server name extension. See also: https://en.wikipedia.org/wiki/Server_Name_Indication

actual var serverName: String?

Custom server name for TLS server name extension. See also: https://en.wikipedia.org/wiki/Server_Name_Indication

Link copied to clipboard

Custom X509TrustManager to verify server authority.

Functions

Link copied to clipboard

Add client certificate chain to use.

Link copied to clipboard
@JvmName(name = "addKeyStoreNullablePassword")
fun TLSConfigBuilder.addKeyStore(store: KeyStore, password: CharArray?, alias: String? = null)

Add client certificates from store by using the certificate with specific alias or all certificates, if alias is null.

Link copied to clipboard
expect fun build(): TLSConfig

Create TLSConfig.

actual fun build(): TLSConfig

Create TLSConfig.

actual fun build(): TLSConfig

Create TLSConfig.

Link copied to clipboard

Append config from other builder.

Append config from other builder.

Append config from other builder.