pub enum SigningKey {
RS256PublicKey(Box<RS256PublicKey>),
RS256PublicKeyLarge(Box<RS256PublicKey>),
}Expand description
Enum that holds the public keys used to validate ID Tokens. Upstream jwt-simple for normal keys; fork for RSA moduli > 4096 bits.
Variants§
RS256PublicKey(Box<RS256PublicKey>)
RS256PublicKeyLarge(Box<RS256PublicKey>)
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn verify_token(
&self,
token: &str,
options: VerificationOptions,
) -> Result<(), Error>
pub fn verify_token( &self, token: &str, options: VerificationOptions, ) -> Result<(), Error>
Returns Ok(()) if the token verifies against this key.
Trait Implementations§
Source§impl Clone for SigningKey
impl Clone for SigningKey
Source§fn clone(&self) -> SigningKey
fn clone(&self) -> SigningKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SigningKey
impl Debug for SigningKey
Source§impl From<JsonWebKey> for SigningKey
impl From<JsonWebKey> for SigningKey
Source§fn from(key: JsonWebKey) -> Self
fn from(key: JsonWebKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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