Package wisp. security. ssl
Types
Link copied to clipboard
data class CertificateAndKey(certificate: X509Certificate, privateKey: PrivateKey)
Content copied to clipboard
Link copied to clipboard
data class CertStoreConfig @JvmOverloads constructor(resource: String, passphrase: String?, format: String)
Content copied to clipboard
Link copied to clipboard
data class PemComboFile(certificates: List<ByteString>, privateRsaKeys: List<ByteString>, privateKeys: List<ByteString>, passphrase: String)
Content copied to clipboard
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
Link copied to clipboard
A set of trusted root certificates.
Link copied to clipboard
data class TrustStoreConfig @JvmOverloads constructor(resource: String, passphrase: String?, format: String)
Content copied to clipboard
Functions
Link copied to clipboard
fun KeyStore.aliasesOfType(entryClass: Class<out KeyStore.Entry>): List<String>
Content copied to clipboard
Link copied to clipboard
fun KeyStore.getCertificateAndKey(passphrase: CharArray): CertificateAndKey?
Content copied to clipboard
fun KeyStore.getCertificateAndKey(alias: String, passphrase: CharArray): CertificateAndKey?
Content copied to clipboard
Link copied to clipboard
fun KeyStore.getPrivateKey(alias: String, passphrase: CharArray): PrivateKey
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun KeyStore.getX509CertificateChain(alias: String): Array<X509Certificate>
Content copied to clipboard