pub enum DecodingKey {
Ed25519(VerifyingKey),
P256(VerifyingKey),
P384(VerifyingKey),
Rsa(RsaPublicKey),
}Variants§
Implementations§
Source§impl DecodingKey
impl DecodingKey
Sourcepub fn from_ec_components(x: &str, y: &str) -> Result<Self, JwsError>
pub fn from_ec_components(x: &str, y: &str) -> Result<Self, JwsError>
From JWK EC members (base64url x/y). Curve is inferred from the coordinate width.
Sourcepub fn from_rsa_components(n: &str, e: &str) -> Result<Self, JwsError>
pub fn from_rsa_components(n: &str, e: &str) -> Result<Self, JwsError>
From JWK RSA members (base64url n/e).
Sourcepub fn from_ed_components(x: &str) -> Result<Self, JwsError>
pub fn from_ed_components(x: &str) -> Result<Self, JwsError>
From JWK OKP member (base64url x, Ed25519).
Auto Trait Implementations§
impl Freeze for DecodingKey
impl RefUnwindSafe for DecodingKey
impl Send for DecodingKey
impl Sync for DecodingKey
impl Unpin for DecodingKey
impl UnsafeUnpin for DecodingKey
impl UnwindSafe for DecodingKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more