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