[][src]Struct openidconnect::core::CoreJsonWebKey

pub struct CoreJsonWebKey { /* fields omitted */ }

Public or symmetric key expressed as a JSON Web Key.

Methods

impl CoreJsonWebKey[src]

pub fn new_rsa(n: Vec<u8>, e: Vec<u8>, kid: Option<JsonWebKeyId>) -> Self[src]

Instantiate a new RSA public key from the raw modulus (n) and public exponent (e), along with an optional (but recommended) key ID.

The key ID is used for matching signed JSON Web Tokens with the keys used for verifying their signatures.

Trait Implementations

impl JsonWebKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse> for CoreJsonWebKey[src]

impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreHmacKey[src]

impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreRsaPrivateSigningKey[src]

impl Clone for CoreJsonWebKey[src]

impl PartialEq<CoreJsonWebKey> for CoreJsonWebKey[src]

impl Debug for CoreJsonWebKey[src]

impl Serialize for CoreJsonWebKey[src]

impl<'de> Deserialize<'de> for CoreJsonWebKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err