public interface SecureStorageManager
PropertyStorage
Modifier and Type | Method and Description |
---|---|
void |
destroyPropertyStorage(String identifier)
Destroy a storage and all properties in the storage will be wiped.
|
PropertyStorage |
getPropertyStorage(String identifier)
Get Secret Storage with the given identifier and default settings.
|
PropertyStorage |
getPropertyStorage(String identifier,
DeviceFingerprintSource dfs)
Get Secret Storage with the given identifier and default settings.
|
boolean |
hasPropertyStorage(String identifier)
Check if the property storage of given identifier exists.
|
PropertyStorage getPropertyStorage(String identifier, DeviceFingerprintSource dfs) throws IdpSecureStorageException
Get Secret Storage with the given identifier and default settings. If
this storage has not been created before, the actual database file will
be created when property is written to it for the first time, that is
when
PropertyStorage.writeProperty(byte[], com.gemalto.idp.mobile.core.util.SecureByteArray, boolean)
is called. If this storage already exists, it returns a reference to it.
The method PropertyStorage.open()
simply opens the existing
storage.
The storage is protected with a password that is managed by password manager as well as the device fingerprint.
identifier
- the unique identifier of the storage.dfs
- the fingerprint sources to be usedIdpSecureStorageException
- thrown when storage operation failed.PropertyStorage getPropertyStorage(String identifier) throws IdpSecureStorageException
Get Secret Storage with the given identifier and default settings. If
this storage has not been created before, the actual database file will
be created when property is written to it for the first time, that is
when
PropertyStorage.writeProperty(byte[], com.gemalto.idp.mobile.core.util.SecureByteArray, boolean)
is called. If this storage already exists, it returns a reference to it.
The method PropertyStorage.open()
simply opens the existing
storage.
The storage is protected with a password that is managed by password manager as well as the device fingerprint. The default settings uses all device fingerprint sources.
identifier
- the unique identifier of the storage.IdpSecureStorageException
- thrown when storage operation failed.boolean hasPropertyStorage(String identifier) throws IdpSecureStorageException
identifier
- the unique identifier of the storage.true
if the property exists.IdpSecureStorageException
- thrown when storage operation failed.void destroyPropertyStorage(String identifier) throws IdpSecureStorageException
identifier
- the unique identifier of the storage.IdpSecureStorageException
- thrown when storage operation failed.