Trait jwt::token::signed::SignWithKey [−][src]
pub trait SignWithKey<T> { fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result<T, Error>; }
Expand description
Allow objects to be signed with a key.
Required methods
fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result<T, Error>
[src]Implementors
impl<H, C> SignWithKey<Token<H, C, Signed>> for Token<H, C, Unsigned> where
H: ToBase64 + JoseHeader,
C: ToBase64,
[src]
impl<H, C> SignWithKey<Token<H, C, Signed>> for Token<H, C, Unsigned> where
H: ToBase64 + JoseHeader,
C: ToBase64,
[src]