Struct jwt_simple::algorithms::RS256PublicKey
source · [−]pub struct RS256PublicKey { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for RS256PublicKey
impl Clone for RS256PublicKey
sourcefn clone(&self) -> RS256PublicKey
fn clone(&self) -> RS256PublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RS256PublicKey
impl Debug for RS256PublicKey
sourceimpl RSAPublicKeyLike for RS256PublicKey
impl RSAPublicKeyLike for RS256PublicKey
fn jwt_alg_name() -> &'static str
fn hash(message: &[u8]) -> Vec<u8>
fn padding_scheme(&self) -> 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 RefUnwindSafe for RS256PublicKey
impl Send for RS256PublicKey
impl Sync for RS256PublicKey
impl Unpin for RS256PublicKey
impl UnwindSafe for RS256PublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more