Trait Thumbprint
pub trait Thumbprint {
// Required method
fn thumbprint_prehashed(&self) -> String;
// Provided methods
fn thumbprint_sha256(&self) -> [u8; 32] { ... }
fn thumbprint_sha256_base64(&self) -> String { ... }
}
Expand description
Methods to calculate RFC 7638 JWK Thumbprints.
Required Methods§
fn thumbprint_prehashed(&self) -> String
fn thumbprint_prehashed(&self) -> String
Returns the RFC 7638 JWK Thumbprint JSON string.
Provided Methods§
fn thumbprint_sha256(&self) -> [u8; 32]
fn thumbprint_sha256(&self) -> [u8; 32]
Returns the RFC 7638 SHA256-hashed JWK Thumbprint.
fn thumbprint_sha256_base64(&self) -> String
fn thumbprint_sha256_base64(&self) -> String
Returns the RFC 7638 SHA256-hashed JWK Thumbprint as base64url string.