Skip to main content

StateBridgeImpl

Trait StateBridgeImpl 

Source
pub trait StateBridgeImpl: Send + Sync {
Show 21 methods // Required methods fn set_user_key<'life0, 'async_trait>( &'life0 self, value: SymmetricCryptoKey, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<SymmetricCryptoKey>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_user_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_persistent_pin_envelope<'life0, 'async_trait>( &'life0 self, value: PasswordProtectedKeyEnvelope, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_persistent_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<PasswordProtectedKeyEnvelope>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_persistent_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_ephemeral_pin_envelope<'life0, 'async_trait>( &'life0 self, value: PasswordProtectedKeyEnvelope, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_ephemeral_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<PasswordProtectedKeyEnvelope>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_ephemeral_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_encrypted_pin<'life0, 'async_trait>( &'life0 self, value: EncString, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_encrypted_pin<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<EncString>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_encrypted_pin<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_v2_upgrade_token<'life0, 'async_trait>( &'life0 self, value: V2UpgradeToken, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_v2_upgrade_token<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<V2UpgradeToken>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_v2_upgrade_token<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_account_cryptographic_state<'life0, 'async_trait>( &'life0 self, value: WrappedAccountCryptographicState, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_account_cryptographic_state<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<WrappedAccountCryptographicState>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_account_cryptographic_state<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_masterpassword_unlock_data<'life0, 'async_trait>( &'life0 self, value: MasterPasswordUnlockData, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_masterpassword_unlock_data<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<MasterPasswordUnlockData>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn clear_masterpassword_unlock_data<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Host-provided storage bridge for key-management state.

SDK consumers register an implementation that persists or caches sensitive account state across unlock flows.

Required Methods§

Source

fn set_user_key<'life0, 'async_trait>( &'life0 self, value: SymmetricCryptoKey, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the user_key value.

Source

fn get_user_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<SymmetricCryptoKey>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the user_key value, if available.

Source

fn clear_user_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the user_key value.

Source

fn set_persistent_pin_envelope<'life0, 'async_trait>( &'life0 self, value: PasswordProtectedKeyEnvelope, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the persistent_pin_envelope value.

Source

fn get_persistent_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<PasswordProtectedKeyEnvelope>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the persistent_pin_envelope value, if available.

Source

fn clear_persistent_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the persistent_pin_envelope value.

Source

fn set_ephemeral_pin_envelope<'life0, 'async_trait>( &'life0 self, value: PasswordProtectedKeyEnvelope, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the ephemeral_pin_envelope value.

Source

fn get_ephemeral_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<PasswordProtectedKeyEnvelope>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the ephemeral_pin_envelope value, if available.

Source

fn clear_ephemeral_pin_envelope<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the ephemeral_pin_envelope value.

Source

fn set_encrypted_pin<'life0, 'async_trait>( &'life0 self, value: EncString, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the encrypted_pin value.

Source

fn get_encrypted_pin<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<EncString>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the encrypted_pin value, if available.

Source

fn clear_encrypted_pin<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the encrypted_pin value.

Source

fn set_v2_upgrade_token<'life0, 'async_trait>( &'life0 self, value: V2UpgradeToken, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the v2_upgrade_token value.

Source

fn get_v2_upgrade_token<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<V2UpgradeToken>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the v2_upgrade_token value, if available.

Source

fn clear_v2_upgrade_token<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the v2_upgrade_token value.

Source

fn set_account_cryptographic_state<'life0, 'async_trait>( &'life0 self, value: WrappedAccountCryptographicState, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the account_cryptographic_state value.

Source

fn get_account_cryptographic_state<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<WrappedAccountCryptographicState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the account_cryptographic_state value, if available.

Source

fn clear_account_cryptographic_state<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the account_cryptographic_state value.

Source

fn set_masterpassword_unlock_data<'life0, 'async_trait>( &'life0 self, value: MasterPasswordUnlockData, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores the masterpassword_unlock_data value.

Source

fn get_masterpassword_unlock_data<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<MasterPasswordUnlockData>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the masterpassword_unlock_data value, if available.

Source

fn clear_masterpassword_unlock_data<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears the masterpassword_unlock_data value.

Implementors§