EncryptedFileKeyStore

class EncryptedFileKeyStore(val identifier: String, val aliasName: String = "org.forgerock.v1.KEY_STORE_MASTER_KEY_ALIAS") : KeyStoreRepository

An implementation of KeyStoreRepository which use EncryptedFile to store the KeyStore

Constructors

Link copied to clipboard
constructor(identifier: String, aliasName: String = "org.forgerock.v1.KEY_STORE_MASTER_KEY_ALIAS")

Properties

Link copied to clipboard
private val aliasName: String
Link copied to clipboard

Functions

Link copied to clipboard
open override fun delete(context: Context)
Link copied to clipboard
open override fun exist(context: Context): Boolean
Link copied to clipboard
private fun getEncryptedFile(context: Context, createNew: Boolean = false): EncryptedFile
Link copied to clipboard
open override fun getInputStream(context: Context): InputStream

Retrieve the InputStream of the KeyStore

Link copied to clipboard

Retrieve the Keystore Type, default to KeyStore.getDefaultType

Link copied to clipboard
open override fun getOutputStream(context: Context): OutputStream

Retrieve the OutputStream of the KeyStore