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. |
|
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 |
|
class TLSConfig TLS configuration. |
|
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 : IllegalStateException 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. |
|
Make Socket connection secure with TLS using TLSConfig. suspend fun Socket.tls( Make Socket connection secure with TLS. suspend fun Socket.tls( Make Socket connection secure with TLS configured with block. |