bitwarden_fido::traits

Trait Fido2UserInterface

Source
pub trait Fido2UserInterface: Send + Sync {
    // Required methods
    fn check_user<'a, 'life0, 'async_trait>(
        &'life0 self,
        options: CheckUserOptions,
        hint: UIHint<'a, CipherView>,
    ) -> Pin<Box<dyn Future<Output = Result<CheckUserResult, Fido2CallbackError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn pick_credential_for_authentication<'life0, 'async_trait>(
        &'life0 self,
        available_credentials: Vec<CipherView>,
    ) -> Pin<Box<dyn Future<Output = Result<CipherView, Fido2CallbackError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn check_user_and_pick_credential_for_creation<'life0, 'async_trait>(
        &'life0 self,
        options: CheckUserOptions,
        new_credential: Fido2CredentialNewView,
    ) -> Pin<Box<dyn Future<Output = Result<(CipherView, CheckUserResult), Fido2CallbackError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_verification_enabled<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn check_user<'a, 'life0, 'async_trait>( &'life0 self, options: CheckUserOptions, hint: UIHint<'a, CipherView>, ) -> Pin<Box<dyn Future<Output = Result<CheckUserResult, Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Source

fn pick_credential_for_authentication<'life0, 'async_trait>( &'life0 self, available_credentials: Vec<CipherView>, ) -> Pin<Box<dyn Future<Output = Result<CipherView, Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn check_user_and_pick_credential_for_creation<'life0, 'async_trait>( &'life0 self, options: CheckUserOptions, new_credential: Fido2CredentialNewView, ) -> Pin<Box<dyn Future<Output = Result<(CipherView, CheckUserResult), Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Implementors§