open class KeyStoreWrapper
(source)
Wraps the critical functions around a Java KeyStore to better facilitate testing and instrumenting.
KeyStoreWrapper()
Wraps the critical functions around a Java KeyStore to better facilitate testing and instrumenting. |
open fun getKeyFor(label: String): Key?
Retrieves the SecretKey for the given label. |
|
fun getKeyStore(): KeyStore
Retrieves the underlying KeyStore, loading it if necessary. |
|
open fun loadKeyStore(): KeyStore
Creates and initializes the KeyStore in use. |
|
open fun makeKeyFor(label: String): SecretKey
Creates a SecretKey for the given label. |
|
fun removeKeyFor(label: String): Unit
Deletes a key with the given label. |