JwsSigner

Trait JwsSigner 

Source
pub trait JwsSigner {
    type Error: Display;

    // Required method
    fn sign<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        header: &'life1 JsonObject,
        payload: &'life2 JsonObject,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

JSON Web Signature (JWS) Signer.

Required Associated Types§

Required Methods§

Source

fn sign<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, header: &'life1 JsonObject, payload: &'life2 JsonObject, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Creates a JWS. The algorithm used for signed must be read from header.alg property.

Implementors§