expect class TLSConfigBuilder
TLSConfig builder.
TLSConfigBuilder()
TLSConfig builder. |
val certificates: MutableList<CertificateAndKey>
List of client certificate chains with private keys. |
|
var cipherSuites: List<CipherSuite>
List of allowed CipherSuites. |
|
var random: SecureRandom?
SecureRandom to use in encryption. |
|
var serverName: String?
Custom server name for TLS server name extension. See also: https://en.wikipedia.org/wiki/Server_Name_Indication |
|
var trustManager: TrustManager?
Custom X509TrustManager to verify server authority. |
fun build(): TLSConfig
Create TLSConfig. |
fun TLSConfigBuilder.addCertificateChain(chain: Array<X509Certificate>, key: PrivateKey): Unit
Add client certificate chain to use. |
|
fun TLSConfigBuilder.
Add client certificates from store by using all certificates fun TLSConfigBuilder.addKeyStore(store: KeyStore, password: CharArray, alias: String? = null): Unit
Add client certificates from store by using the certificate with specific alias or all certificates, if alias is null. |
|
expect fun TLSConfigBuilder.takeFrom(other: TLSConfigBuilder): Unit
Append config from other builder. |