Skip to main content

SignWithStore

Trait SignWithStore 

Source
pub trait SignWithStore<T> {
    // Required method
    fn sign_with_store<S, A>(self, store: &S) -> Result<T, Error>
       where S: Store<Algorithm = A>,
             A: SigningAlgorithm;
}
Expand description

Allow objects to be signed with a store.

Required Methods§

Source

fn sign_with_store<S, A>(self, store: &S) -> Result<T, Error>
where S: Store<Algorithm = A>, A: SigningAlgorithm,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, C: ToBase64> SignWithStore<String> for (&'a str, C)

Source§

fn sign_with_store<S, A>(self, store: &S) -> Result<String, Error>
where S: Store<Algorithm = A>, A: SigningAlgorithm,

Implementors§

Source§

impl<H, C> SignWithStore<Token<H, C, Signed>> for Token<H, C, Unsigned>
where H: ToBase64 + JoseHeader, C: ToBase64,