TokenExchangeProcessor

Trait TokenExchangeProcessor 

Source
pub trait TokenExchangeProcessor: Send + Sync {
    // Required methods
    fn process_exchange<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        request: &'life1 AdvancedTokenExchangeRequest,
        context: &'life2 ExchangeContext,
    ) -> Pin<Box<dyn Future<Output = Result<AdvancedTokenExchangeResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn validate_subject_token<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        token: &'life1 str,
        token_type: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn validate_actor_token<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        token: &'life1 str,
        token_type: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn generate_exchanged_token<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        subject_info: &'life1 SubjectInfo,
        actor_info: Option<&'life2 ActorInfo>,
        request: &'life3 AdvancedTokenExchangeRequest,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Token exchange processor trait

Required Methods§

Source

fn process_exchange<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, request: &'life1 AdvancedTokenExchangeRequest, context: &'life2 ExchangeContext, ) -> Pin<Box<dyn Future<Output = Result<AdvancedTokenExchangeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Process token exchange request

Source

fn validate_subject_token<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, token: &'life1 str, token_type: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Validate subject token

Source

fn validate_actor_token<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, token: &'life1 str, token_type: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Validate actor token

Source

fn generate_exchanged_token<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, subject_info: &'life1 SubjectInfo, actor_info: Option<&'life2 ActorInfo>, request: &'life3 AdvancedTokenExchangeRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Generate exchanged token

Implementors§