pub trait DeviceSecureStore:
Send
+ Sync
+ 'static {
// Provided methods
fn secure_store_read(
&self,
key: &str,
) -> Result<Option<Vec<u8>>, PlatformError> { ... }
fn secure_store_write(
&self,
key: &str,
value: &[u8],
) -> Result<(), PlatformError> { ... }
fn secure_store_delete(&self, key: &str) -> Result<(), PlatformError> { ... }
}Provided Methods§
Sourcefn secure_store_read(&self, key: &str) -> Result<Option<Vec<u8>>, PlatformError>
fn secure_store_read(&self, key: &str) -> Result<Option<Vec<u8>>, PlatformError>
Read a persisted value from a secure, app-scoped store that survives reinstall where supported.
Sourcefn secure_store_write(
&self,
key: &str,
value: &[u8],
) -> Result<(), PlatformError>
fn secure_store_write( &self, key: &str, value: &[u8], ) -> Result<(), PlatformError>
Persist a value into the secure store.
Sourcefn secure_store_delete(&self, key: &str) -> Result<(), PlatformError>
fn secure_store_delete(&self, key: &str) -> Result<(), PlatformError>
Delete a value from the secure store.