Struct jwt_simple::algorithms::Blake2bKey
source · pub struct Blake2bKey { /* private fields */ }Implementations§
source§impl Blake2bKey
impl Blake2bKey
Trait Implementations§
source§impl Clone for Blake2bKey
impl Clone for Blake2bKey
source§fn clone(&self) -> Blake2bKey
fn clone(&self) -> Blake2bKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Blake2bKey
impl Debug for Blake2bKey
source§impl MACLike for Blake2bKey
impl MACLike for Blake2bKey
fn jwt_alg_name() -> &'static str
fn key(&self) -> &HMACKey
fn key_id(&self) -> &Option<String>
fn set_key_id(&mut self, key_id: String)
fn metadata(&self) -> &Option<KeyMetadata>
fn attach_metadata(&mut self, metadata: KeyMetadata) -> Result<(), Error>
fn authentication_tag(&self, authenticated: &str) -> Vec<u8>
fn authenticate<CustomClaims: Serialize + DeserializeOwned>( &self, claims: JWTClaims<CustomClaims> ) -> Result<String, Error>
fn verify_token<CustomClaims: Serialize + DeserializeOwned>( &self, token: &str, options: Option<VerificationOptions> ) -> Result<JWTClaims<CustomClaims>, Error>
fn create_key_id(&mut self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for Blake2bKey
impl Send for Blake2bKey
impl Sync for Blake2bKey
impl Unpin for Blake2bKey
impl UnwindSafe for Blake2bKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more