Package io.ktor.network.tls
Types
object CIOCipherSuites CIO cipher suites collection https://www.ietf.org/rfc/rfc5289.txt https://tools.ietf.org/html/rfc5288#section-3 |
|
class CertificateAndKey Client certificate chain with private key. |
|
data class CipherSuite Represents a TLS cipher suite |
|
enum class CipherType Cipher type. |
|
data class OID |
|
enum class SecretExchangeType TLS secret key exchange type. |
|
enum class ServerKeyExchangeType Server key exchange type with it’s code |
|
enum class TLSAlertLevel TLS alert level |
|
enum class TLSAlertType TLS alert types with codes |
|
expect class TLSConfig |
|
expect class TLSConfigBuilder TLSConfig builder. |
|
enum class TLSHandshakeType TLS handshake record type |
|
enum class TLSRecordType TLS record type with it’s numeric code |
|
enum class TLSVersion TLS version |
Exceptions
class NoPrivateKeyException : Throws if failed to find PrivateKey for any alias in KeyStore. |
Functions
fun TLSConfigBuilder.addCertificateChain( Add client certificate chain to use. |
|
fun TLSConfigBuilder. Add client certificates from store by using all certificates fun TLSConfigBuilder.addKeyStore( Add client certificates from store by using the certificate with specific alias or all certificates, if alias is null. |
|
expect fun TLSConfigBuilder.takeFrom( Append config from other builder. |
|
suspend fun Connection.tls( Make Socket connection secure with TLS using TLSConfig. suspend fun Connection.tls( suspend fun Socket.tls( Make Socket connection secure with TLS. suspend expect fun Socket.tls( suspend fun Connection.tls( Make Socket connection secure with TLS configured with block. |