Trait jwt_simple::algorithms::RSAPublicKeyLike
source · pub trait RSAPublicKeyLike {
// Required methods
fn jwt_alg_name() -> &'static str;
fn public_key(&self) -> &RSAPublicKey;
fn key_id(&self) -> &Option<String>;
fn set_key_id(&mut self, key_id: String);
fn hash(message: &[u8]) -> Vec<u8>;
fn padding_scheme(&self) -> PaddingScheme;
// Provided method
fn verify_token<CustomClaims: Serialize + DeserializeOwned>(
&self,
token: &str,
options: Option<VerificationOptions>
) -> Result<JWTClaims<CustomClaims>, Error> { ... }
}