pub enum VerifyingKey {
Secret(SecretKey),
RsaKey(PemEncodedKey),
EcKey(PemEncodedKey),
EdKey(PemEncodedKey),
}
Expand description
A verification key used to verify the signature of a JWT.
Variants§
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
pub fn from_secret(secret: &[u8]) -> Self
pub fn from_base64_secret(secret: &str) -> Result<Self, Error>
pub fn from_rsa_pem(key: &[u8]) -> Result<Self, Error>
pub fn from_rsa_components(n: &[u8], e: &[u8]) -> Result<Self, Error>
pub fn from_rsa_der(key: &[u8]) -> Result<Self, Error>
pub fn from_ec_pem(key: &[u8]) -> Result<Self, Error>
pub fn from_ec_der(key: &[u8]) -> Result<Self, Error>
pub fn from_ed_pem(key: &[u8]) -> Result<Self, Error>
pub fn from_ed_der(key: &[u8]) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
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 moreAuto Trait Implementations§
impl Freeze for VerifyingKey
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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