[][src]Struct openidconnect::JsonWebKeySet

pub struct JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
{ /* fields omitted */ }

JSON Web Key Set.

Methods

impl<JS, JT, JU, K> JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

pub fn new(keys: Vec<K>) -> Self[src]

Create a new JSON Web Key Set.

pub fn fetch<HC, RE>(
    url: &JsonWebKeySetUrl,
    http_client: HC
) -> Result<Self, DiscoveryError<RE>> where
    HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
    RE: Fail
[src]

Fetch a remote JSON Web Key Set from the specified url using the given http_client (e.g., crate::reqwest::http_client or [crate::curl::http_client]).

pub fn fetch_async<F, HC, RE>(
    url: &JsonWebKeySetUrl,
    http_client: HC
) -> impl Future<Item = Self, Error = DiscoveryError<RE>> where
    F: Future<Item = HttpResponse, Error = RE>,
    HC: FnOnce(HttpRequest) -> F,
    RE: Fail
[src]

Fetch a remote JSON Web Key Set from the specified url using the given async http_client (e.g., [crate::reqwest::async_http_client]).

pub fn keys(&self) -> &Vec<K>[src]

Return the keys in this JSON Web Key Set.

Trait Implementations

impl<JS, JT, JU, K> Clone for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

impl<JS, JT, JU, K> Default for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

impl<JS: PartialEq, JT: PartialEq, JU: PartialEq, K: PartialEq> PartialEq<JsonWebKeySet<JS, JT, JU, K>> for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

impl<JS: Debug, JT: Debug, JU: Debug, K: Debug> Debug for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

impl<JS, JT, JU, K> StructuralPartialEq for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

impl<JS, JT, JU, K> Serialize for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>,
    K: JsonWebKey<JS, JT, JU>, 
[src]

impl<'de, JS, JT, JU, K> Deserialize<'de> for JsonWebKeySet<JS, JT, JU, K> where
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>,
    K: JsonWebKey<JS, JT, JU>, 
[src]

Auto Trait Implementations

impl<JS, JT, JU, K> Send for JsonWebKeySet<JS, JT, JU, K> where
    JS: Send,
    JT: Send,
    JU: Send,
    K: Send

impl<JS, JT, JU, K> Sync for JsonWebKeySet<JS, JT, JU, K> where
    JS: Sync,
    JT: Sync,
    JU: Sync,
    K: Sync

impl<JS, JT, JU, K> Unpin for JsonWebKeySet<JS, JT, JU, K> where
    JS: Unpin,
    JT: Unpin,
    JU: Unpin,
    K: Unpin

impl<JS, JT, JU, K> UnwindSafe for JsonWebKeySet<JS, JT, JU, K> where
    JS: UnwindSafe,
    JT: UnwindSafe,
    JU: UnwindSafe,
    K: UnwindSafe

impl<JS, JT, JU, K> RefUnwindSafe for JsonWebKeySet<JS, JT, JU, K> where
    JS: RefUnwindSafe,
    JT: RefUnwindSafe,
    JU: RefUnwindSafe,
    K: RefUnwindSafe

Blanket Implementations

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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> Erased for T

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self