pub struct MLDSA44PublicKey { /* private fields */ }Implementations§
Source§impl MLDSA44PublicKey
impl MLDSA44PublicKey
pub fn from_bytes(raw: &[u8]) -> Result<Self, Error>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn with_key_id(self, key_id: &str) -> Self
Sourcepub fn from_jwk(jwk: &str) -> Result<Self, Error>
pub fn from_jwk(jwk: &str) -> Result<Self, Error>
Import a public key from an AKP JWK, with alg: ML-DSA-44.
See strict JWK validation for the rules.
Sourcepub fn to_jwk(&self) -> String
pub fn to_jwk(&self) -> String
Export the public key as an AKP JWK, with alg: ML-DSA-44 and use: sig.
Sourcepub fn jwk_thumbprint(&self) -> String
pub fn jwk_thumbprint(&self) -> String
The JWK thumbprint of the key, which includes its algorithm.
Trait Implementations§
Source§impl Clone for MLDSA44PublicKey
impl Clone for MLDSA44PublicKey
Source§impl Debug for MLDSA44PublicKey
impl Debug for MLDSA44PublicKey
Source§impl MLDSAPublicKeyLike for MLDSA44PublicKey
impl MLDSAPublicKeyLike for MLDSA44PublicKey
fn jwt_alg_name() -> &'static str
fn public_key(&self) -> &MLDSAPublicKey
fn key_id(&self) -> &Option<String>
fn set_key_id(&mut self, key_id: String)
fn verify_token<CustomClaims: DeserializeOwned>( &self, token: &str, options: Option<VerificationOptions>, ) -> Result<JWTClaims<CustomClaims>, Error>
fn create_key_id(&mut self) -> &str
Auto Trait Implementations§
impl Freeze for MLDSA44PublicKey
impl RefUnwindSafe for MLDSA44PublicKey
impl Send for MLDSA44PublicKey
impl Sync for MLDSA44PublicKey
impl Unpin for MLDSA44PublicKey
impl UnsafeUnpin for MLDSA44PublicKey
impl UnwindSafe for MLDSA44PublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more