[−][src]Struct openidconnect::JsonWebKeySet
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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
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]
url: &JsonWebKeySetUrl,
http_client: HC
) -> Result<Self, DiscoveryError<RE>> where
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Fail,
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]
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,
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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
fn eq(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
[src]
fn ne(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
[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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
K: JsonWebKey<JS, JT, JU>,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
K: JsonWebKey<JS, JT, JU>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<JS, JT, JU, K> Send for JsonWebKeySet<JS, JT, JU, K> where
JS: Send,
JT: Send,
JU: Send,
K: Send,
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,
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,
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,
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,
JS: RefUnwindSafe,
JT: RefUnwindSafe,
JU: RefUnwindSafe,
K: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,