Trait JwsSigner
pub trait JwsSigner {
type Error: Display;
// Required method
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
header: &'life1 Map<String, Value>,
payload: &'life2 Map<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}Expand description
JSON Web Signature (JWS) Signer.
Required Associated Types§
Required Methods§
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
header: &'life1 Map<String, Value>,
payload: &'life2 Map<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
header: &'life1 Map<String, Value>,
payload: &'life2 Map<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Creates a JWS. The algorithm used for signed must be read from header.alg property.