ktor-server-host-common / io.ktor.server.engine / EngineSSLConnectorBuilder

EngineSSLConnectorBuilder

class EngineSSLConnectorBuilder : EngineConnectorBuilder, EngineSSLConnectorConfig

Mutable implementation of EngineSSLConnectorConfig for building connectors programmatically

Constructors

<init>

EngineSSLConnectorBuilder(keyStore: KeyStore, keyAlias: String, keyStorePassword: () -> CharArray, privateKeyPassword: () -> CharArray)

Mutable implementation of EngineSSLConnectorConfig for building connectors programmatically

Properties

keyAlias

var keyAlias: String

TLS key alias

keyStore

var keyStore: KeyStore

KeyStore where a certificate is stored

keyStorePassword

var keyStorePassword: () -> CharArray

Keystore password provider

keyStorePath

var keyStorePath: File?

File where the keystore is located

privateKeyPassword

val privateKeyPassword: () -> CharArray

Private key password provider

Inherited Properties

host

open var host: String

The network interface this host binds to as an IP address or a hostname. If null or 0.0.0.0, then bind to all interfaces.

port

open var port: Int

The port this application should be bound to.

type

open val type: ConnectorType

Type of the connector, e.g HTTP or HTTPS.

Inherited Functions

toString

open fun toString(): String