TLSConfigBuilder
class TLSConfigBuilder
TLSConfig builder.
Constructors
TLSConfigBuilder() TLSConfig builder. |
Properties
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. |
Functions
fun build(): TLSConfig Create TLSConfig. |
Extension Functions
fun TLSConfigBuilder.addCertificateChain( Add client certificate chain to use. |
|
fun TLSConfigBuilder.addKeyStore( Add client certificates from store. |