Skip to main content

DeviceSecureStore

Trait DeviceSecureStore 

Source
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§

Source

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.

Source

fn secure_store_write( &self, key: &str, value: &[u8], ) -> Result<(), PlatformError>

Persist a value into the secure store.

Source

fn secure_store_delete(&self, key: &str) -> Result<(), PlatformError>

Delete a value from the secure store.

Implementors§