pub struct PS384PublicKey { /* private fields */ }Implementations§
Source§impl PS384PublicKey
impl PS384PublicKey
pub fn from_der(der: &[u8]) -> Result<Self, Error>
pub fn from_pem(pem: &str) -> Result<Self, Error>
pub fn from_components(n: &[u8], e: &[u8]) -> Result<Self, Error>
pub fn to_der(&self) -> Result<Vec<u8>, Error>
pub fn to_pem(&self) -> Result<String, Error>
pub fn to_components(&self) -> RSAPublicKeyComponents
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 RSA JWK.
The modulus must be 2048 to 4096 bits long, and the exponent 65537. See strict JWK validation for the other rules.
Sourcepub fn jwk_thumbprint(&self) -> String
pub fn jwk_thumbprint(&self) -> String
The JWK thumbprint of the key.
pub fn sha1_thumbprint(&self) -> String
pub fn sha256_thumbprint(&self) -> String
Trait Implementations§
Source§impl Clone for PS384PublicKey
impl Clone for PS384PublicKey
Source§impl Debug for PS384PublicKey
impl Debug for PS384PublicKey
Source§impl RSAPublicKeyLike for PS384PublicKey
impl RSAPublicKeyLike for PS384PublicKey
fn jwt_alg_name() -> &'static str
fn hash() -> MessageDigest
fn padding_scheme(&self) -> Padding
fn public_key(&self) -> &RSAPublicKey
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>
Auto Trait Implementations§
impl Freeze for PS384PublicKey
impl RefUnwindSafe for PS384PublicKey
impl Send for PS384PublicKey
impl Sync for PS384PublicKey
impl Unpin for PS384PublicKey
impl UnsafeUnpin for PS384PublicKey
impl UnwindSafe for PS384PublicKey
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