Skip to main content

ServiceCredentialStore

Trait ServiceCredentialStore 

Source
pub trait ServiceCredentialStore: Send + Sync {
    // Required methods
    fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        grant_type: &'life1 GrantType,
        input: &'life2 CredentialAuthenticationInput,
    ) -> Pin<Box<dyn Future<Output = Result<Option<CredentialMatch>, ServiceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn has_presentation<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        grant_type: &'life1 GrantType,
        input: &'life2 CredentialAuthenticationInput,
    ) -> Pin<Box<dyn Future<Output = Result<bool, ServiceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn revoke_credential<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        agent_did: &'life1 str,
        grant_type: &'life2 GrantType,
        credential_id: &'life3 str,
        revoked_at: OffsetDateTime,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn revoke_grant_type<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        agent_did: &'life1 str,
        grant_type: &'life2 GrantType,
        revoked_at: OffsetDateTime,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn save<'life0, 'async_trait>(
        &'life0 self,
        record: ServiceCredentialRecord,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn authenticate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, grant_type: &'life1 GrantType, input: &'life2 CredentialAuthenticationInput, ) -> Pin<Box<dyn Future<Output = Result<Option<CredentialMatch>, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn has_presentation<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, grant_type: &'life1 GrantType, input: &'life2 CredentialAuthenticationInput, ) -> Pin<Box<dyn Future<Output = Result<bool, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn revoke_credential<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, agent_did: &'life1 str, grant_type: &'life2 GrantType, credential_id: &'life3 str, revoked_at: OffsetDateTime, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn revoke_grant_type<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, agent_did: &'life1 str, grant_type: &'life2 GrantType, revoked_at: OffsetDateTime, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn save<'life0, 'async_trait>( &'life0 self, record: ServiceCredentialRecord, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§