pub trait EdDSAPublicKeyLike {
    fn jwt_alg_name() -> &'static str;
    fn public_key(&self) -> &Edwards25519PublicKey;
    fn key_id(&self) -> &Option<String>;
    fn set_key_id(&mut self, key_id: String);

    fn verify_token<CustomClaims: Serialize + DeserializeOwned>(
        &self,
        token: &str,
        options: Option<VerificationOptions>
    ) -> Result<JWTClaims<CustomClaims>, JWTError> { ... } fn create_key_id(&mut self) -> Result<String, JWTError> { ... } }

Required Methods§

source

fn jwt_alg_name() -> &'static str

source

fn public_key(&self) -> &Edwards25519PublicKey

source

fn key_id(&self) -> &Option<String>

source

fn set_key_id(&mut self, key_id: String)

Provided Methods§

source

fn verify_token<CustomClaims: Serialize + DeserializeOwned>(
    &self,
    token: &str,
    options: Option<VerificationOptions>
) -> Result<JWTClaims<CustomClaims>, JWTError>

source

fn create_key_id(&mut self) -> Result<String, JWTError>

Implementors§