CredentialSource

Trait CredentialSource 

Source
pub trait CredentialSource {
    // Required methods
    fn add_credential<'a>(
        &'a self,
        scope_id: ScopeID,
        credential: Credential,
    ) -> Pin<Box<dyn Future<Output = ()> + 'a>>;
    fn credentials_for<'a>(
        &'a self,
        scope_id: &'a ScopeID,
    ) -> Pin<Box<dyn Future<Output = Vec<Credential>> + 'a>>;
    fn id_hash(&self) -> CredentialSourceHash;
    fn clone_ref(&self) -> Box<dyn CredentialSource>;
}

Required Methods§

Source

fn add_credential<'a>( &'a self, scope_id: ScopeID, credential: Credential, ) -> Pin<Box<dyn Future<Output = ()> + 'a>>

Source

fn credentials_for<'a>( &'a self, scope_id: &'a ScopeID, ) -> Pin<Box<dyn Future<Output = Vec<Credential>> + 'a>>

Source

fn id_hash(&self) -> CredentialSourceHash

Source

fn clone_ref(&self) -> Box<dyn CredentialSource>

Implementors§