Trait jwt_simple::algorithms::MACLike [−][src]
pub trait MACLike {
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 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 { ... }
}Required methods
fn jwt_alg_name() -> &'static str[src]fn set_key_id(&mut self, key_id: String)[src]fn authentication_tag(&self, authenticated: &str) -> Vec<u8>[src]Provided methods
fn authenticate<CustomClaims: Serialize + DeserializeOwned>(
&self,
claims: JWTClaims<CustomClaims>
) -> Result<String, Error>[src]fn verify_token<CustomClaims: Serialize + DeserializeOwned>(
&self,
token: &str,
options: Option<VerificationOptions>
) -> Result<JWTClaims<CustomClaims>, Error>[src]fn create_key_id(&mut self) -> &str[src]