pub struct RS256PublicKey { /* private fields */ }Implementations§
Source§impl RS256PublicKey
impl RS256PublicKey
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 RS256PublicKey
impl Clone for RS256PublicKey
Source§fn clone(&self) -> RS256PublicKey
fn clone(&self) -> RS256PublicKey
Returns a duplicate 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 RS256PublicKey
impl Debug for RS256PublicKey
Source§impl RSAPublicKeyLike for RS256PublicKey
impl RSAPublicKeyLike for RS256PublicKey
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 RS256PublicKey
impl RefUnwindSafe for RS256PublicKey
impl Send for RS256PublicKey
impl Sync for RS256PublicKey
impl Unpin for RS256PublicKey
impl UnsafeUnpin for RS256PublicKey
impl UnwindSafe for RS256PublicKey
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