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.addKeyStore( Add client certificates from store. |
|
expect fun TLSConfigBuilder.takeFrom( Append config from other builder. |
|
Make Socket connection secure with TLS using TLSConfig. Make Socket connection secure with TLS configured with block. suspend expect fun Socket.tls( Make Socket connection secure with TLS configured with block. suspend fun Socket.tls( Make Socket connection secure with TLS. |