Trait actix_web_security::authentication::scheme::bearer::jwt::token::decoder::TokenDecoder[][src]

pub trait TokenDecoder<T: for<'b> Deserialize<'b> + Claims>: TokenDecoderClone<T> {
    fn decode_token(&self, token: &str) -> Result<Box<T>, AuthenticationError>;
}

Token decoder claim trait definition. Decodes a string token to either a boxed instance of Claims or returns an error.

Required methods

Loading content...

Implementors

impl<T: for<'b> Deserialize<'b> + Claims> TokenDecoder<T> for RsaJwtDecoder[src]

Loading content...