pub struct RS384PublicKey { /* private fields */ }
Implementations§
source§impl RS384PublicKey
impl RS384PublicKey
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
pub fn sha1_thumbprint(&self) -> String
pub fn sha256_thumbprint(&self) -> String
Trait Implementations§
source§impl Clone for RS384PublicKey
impl Clone for RS384PublicKey
source§fn clone(&self) -> RS384PublicKey
fn clone(&self) -> RS384PublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RS384PublicKey
impl Debug for RS384PublicKey
source§impl RSAPublicKeyLike for RS384PublicKey
impl RSAPublicKeyLike for RS384PublicKey
fn jwt_alg_name() -> &'static str
fn hash(message: &[u8]) -> Vec<u8>
fn padding_scheme(&self) -> PaddingScheme
fn padding_scheme_alt(&self) -> Option<PaddingScheme>
fn public_key(&self) -> &RSAPublicKey
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>, Error>
Auto Trait Implementations§
impl Freeze for RS384PublicKey
impl RefUnwindSafe for RS384PublicKey
impl Send for RS384PublicKey
impl Sync for RS384PublicKey
impl Unpin for RS384PublicKey
impl UnwindSafe for RS384PublicKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)