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§
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn clear_user_key<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + 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,
Clears the user_key value.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn clear_encrypted_pin<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + 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,
Clears the encrypted_pin value.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.