pub struct JwkResolver;Expand description
Resolves a KeyReference::Jwk to its public part; every other reference is
Unsupported.
Anybody can put a key in a jwk header, so the key says nothing about who signed: a
validator accepts it only when the claimed party is that key’s did:jwk or thumbprint
(KeyReference::binds_to). Add it to a CompositeKeyResolver to accept such tokens.
Trait Implementations§
Source§impl Clone for JwkResolver
impl Clone for JwkResolver
impl Copy for JwkResolver
Source§impl Debug for JwkResolver
impl Debug for JwkResolver
Source§impl Default for JwkResolver
impl Default for JwkResolver
impl Eq for JwkResolver
Source§impl KeyResolver for JwkResolver
impl KeyResolver for JwkResolver
Source§fn resolve_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 KeyReference,
__arg2: KeyRole,
) -> Pin<Box<dyn Future<Output = Result<Jwk, KeyResolutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 KeyReference,
__arg2: KeyRole,
) -> Pin<Box<dyn Future<Output = Result<Jwk, KeyResolutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl PartialEq for JwkResolver
impl PartialEq for JwkResolver
impl StructuralPartialEq for JwkResolver
Auto Trait Implementations§
impl Freeze for JwkResolver
impl RefUnwindSafe for JwkResolver
impl Send for JwkResolver
impl Sync for JwkResolver
impl Unpin for JwkResolver
impl UnsafeUnpin for JwkResolver
impl UnwindSafe for JwkResolver
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.