Package wisp.security.ssl

Types

Link copied to clipboard
data class CertificateAndKey(certificate: X509Certificate, privateKey: PrivateKey)
Link copied to clipboard
data class CertStore(keyStore: KeyStore)

A certificate and its private key.

Link copied to clipboard
data class CertStoreConfig @JvmOverloads constructor(resource: String, passphrase: String?, format: String)
Link copied to clipboard
data class PemComboFile(certificates: List<ByteString>, privateRsaKeys: List<ByteString>, privateKeys: List<ByteString>, passphrase: String)

A file containing a mix of PEM-encoded certificates and PEM-encoded private keys. Can be used both for trust stores (which certificate authorities a TLS client trusts) and also for TLS servers (which certificate chain a TLS server serves).

Link copied to clipboard
open class SslContextFactory(sslLoader: SslLoader)
Link copied to clipboard
open class SslLoader(resourceLoader: ResourceLoader)

Loads keys and certificates from the file system.

Link copied to clipboard
data class TrustStore(keyStore: KeyStore)

A set of trusted root certificates.

Link copied to clipboard
data class TrustStoreConfig @JvmOverloads constructor(resource: String, passphrase: String?, format: String)

Functions

Link copied to clipboard
inline fun <T : KeyStore.Entry> KeyStore.aliasesOfType(): List<String>
fun KeyStore.aliasesOfType(entryClass: Class<out KeyStore.Entry>): List<String>
Link copied to clipboard
fun KeyStore.getCertificateAndKey(passphrase: CharArray): CertificateAndKey?
fun KeyStore.getCertificateAndKey(alias: String, passphrase: CharArray): CertificateAndKey?
Link copied to clipboard
fun KeyStore.getPrivateKey(passphrase: CharArray): PrivateKey
fun KeyStore.getPrivateKey(alias: String, passphrase: CharArray): PrivateKey
Link copied to clipboard
fun KeyStore.getX509Certificate(): X509Certificate
fun KeyStore.getX509Certificate(alias: String): X509Certificate
Link copied to clipboard
fun KeyStore.getX509CertificateChain(): Array<X509Certificate>
fun KeyStore.getX509CertificateChain(alias: String): Array<X509Certificate>

Properties

Link copied to clipboard
val KeyStore.onlyAlias: String