TLSConfigBuilder

expect class TLSConfigBuilder

TLSConfig builder.

actual class TLSConfigBuilder

TLSConfig builder.

actual class TLSConfigBuilder

TLSConfig builder.

actual class TLSConfigBuilder

TLSConfig builder.

Constructors

Link copied to clipboard
fun TLSConfigBuilder()
Link copied to clipboard
fun TLSConfigBuilder()
Link copied to clipboard
expect fun TLSConfigBuilder()
actual fun TLSConfigBuilder()

Functions

Link copied to clipboard
expect fun build(): TLSConfig

Create TLSConfig.

actual fun build(): TLSConfig

Create TLSConfig.

actual fun build(): TLSConfig

Create TLSConfig.

actual fun build(): TLSConfig

Create TLSConfig.

Properties

Link copied to clipboard
val certificates: MutableList<CertificateAndKey>

List of client certificate chains with private keys.

Link copied to clipboard
var cipherSuites: List<CipherSuite>

List of allowed CipherSuites.

Link copied to clipboard
var random: SecureRandom? = null

SecureRandom to use in encryption.

Link copied to clipboard
expect var serverName: String? = null

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

actual var serverName: String? = null

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

actual var serverName: String? = null

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

actual var serverName: String? = null

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

Link copied to clipboard
var trustManager: TrustManager? = null

Custom X509TrustManager to verify server authority.

Extensions

Link copied to clipboard
fun TLSConfigBuilder.addCertificateChain(chain: Array<X509Certificate>, key: PrivateKey)

Add client certificate chain to use.

Link copied to clipboard
fun TLSConfigBuilder.addKeyStore(store: KeyStore, password: CharArray)

Add client certificates from store by using all certificates

fun TLSConfigBuilder.addKeyStore(store: KeyStore, password: CharArray, alias: String? = null)
@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 TLSConfigBuilder.takeFrom(other: TLSConfigBuilder)

Append config from other builder.

actual fun TLSConfigBuilder.takeFrom(other: TLSConfigBuilder)

Append config from other builder.

actual fun TLSConfigBuilder.takeFrom(other: TLSConfigBuilder)

Append config from other builder.

actual fun TLSConfigBuilder.takeFrom(other: TLSConfigBuilder)

Append config from other builder.