Interface IKeystoreBlobStorage
interface IKeystoreBlobStorage
Extends com.amazon.apmf.IStandard
Interface for keystores that allow exporting key blobs.
Most keystores will not implement this interface because they will handle
persisting keys automatically.
Methods
importKeyFromBlob()
Import a key from a keyblob previously exported from this keystore.IKeystoreKey*importKeyFromBlob(u8[]blob)
Parameters
blob
u8[] — Required
The key blob to import.
Returns
IKeystoreKey*
The imported keystore key.
Throws
DuplicateKeyError— if a key with the same name already exists.KeyFormatError— if the blob cannot be imported by this keystore.
exportBlob()
Export a key blob that can only be used by the owning keystore. This exports the key and associated metadata as an encrypted blob that can only be used by this keystore.u8[]exportBlob(IKeystoreKey*key)
Parameters
key
IKeystoreKey* — Required
The keystore key to export.
Returns
u8[]
The exported key blob.

