getIdentity

expect fun getIdentity(alias: String): TLSIdentity?(source)

Get a TLSIdentity backed by the information for the passed alias.

Return

the identity

Parameters

alias

the keystore alias for the identity's entry.

Throws

on failure to get identity

fun getIdentity(keyStore: KeyStore, alias: String, keyPassword: CharArray?): TLSIdentity?(source)

Get a TLSIdentity object from the give KeyStore, key alias, and key password. The KeyStore must contain the private key along with the certificate chain at the given key alias and password, otherwise null will be returned.

Return

A TLSIdentity object.

Parameters

keyStore

KeyStore

alias

key alias

keyPassword

key password if available

Throws


actual fun getIdentity(alias: String): TLSIdentity?(source)
actual fun getIdentity(alias: String): TLSIdentity?(source)