Trait jwt::algorithm::VerifyingAlgorithm [−][src]
pub trait VerifyingAlgorithm {
fn algorithm_type(&self) -> AlgorithmType;
fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>;
fn verify(
&self,
header: &str,
claims: &str,
signature: &str
) -> Result<bool, Error> { ... }
}
Expand description
An algorithm capable of verifying base64 encoded header and claims strings.