[][src]Struct aliri_jose::Jwks

pub struct Jwks { /* fields omitted */ }

A JSON Web Key Set (JWKS)

Implementations

impl Jwks[src]

pub fn add_key(&mut self, key: Jwk)[src]

Adds a key to the set

pub fn keys(&self) -> &[Jwk][src]

A view of the keys in this set

pub fn get_key<A: Into<Algorithm>>(&self, alg: A) -> Option<&Jwk>[src]

Gets the best key based on the algorithm requested

pub fn get_key_by_id<A: Into<Algorithm>>(
    &self,
    kid: &KeyIdRef,
    alg: A
) -> Option<&Jwk>
[src]

Gets the best key based on the key id and algorithm requested

pub fn get_key_by_opt<A: Into<Algorithm>>(
    &self,
    kid: Option<&KeyIdRef>,
    alg: A
) -> Option<&Jwk>
[src]

Gets the best key based on the key id (if provided) and algorithm requested

Trait Implementations

impl Clone for Jwks[src]

impl Debug for Jwks[src]

impl Default for Jwks[src]

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

impl Eq for Jwks[src]

impl PartialEq<Jwks> for Jwks[src]

impl Serialize for Jwks[src]

impl StructuralEq for Jwks[src]

impl StructuralPartialEq for Jwks[src]

Auto Trait Implementations

impl RefUnwindSafe for Jwks

impl Send for Jwks

impl Sync for Jwks

impl Unpin for Jwks

impl UnwindSafe for Jwks

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.