pub struct BearerJwtAuthenticator<V: TokenVerifier> { /* private fields */ }Expand description
Bearer-token authenticator over an injected TokenVerifier.
Implementations§
Source§impl<V: TokenVerifier> BearerJwtAuthenticator<V>
impl<V: TokenVerifier> BearerJwtAuthenticator<V>
Trait Implementations§
Source§impl<V: TokenVerifier> Authenticator for BearerJwtAuthenticator<V>
impl<V: TokenVerifier> Authenticator for BearerJwtAuthenticator<V>
Source§fn name(&self) -> &str
fn name(&self) -> &str
A stable, non-secret name for logs, audit records, and capability
advertisement.
Source§fn accepts(&self, presentation: &Presentation) -> bool
fn accepts(&self, presentation: &Presentation) -> bool
Does this authenticator handle this presentation?
Source§fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
presentation: &'life1 Presentation,
) -> Pin<Box<dyn Future<Output = Result<Authenticated, AuthnRejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
presentation: &'life1 Presentation,
) -> Pin<Box<dyn Future<Output = Result<Authenticated, AuthnRejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Verify the material and name the subject it proves.
Auto Trait Implementations§
impl<V> Forget for BearerJwtAuthenticator<V>
impl<V> Freeze for BearerJwtAuthenticator<V>where
V: Freeze,
impl<V> Move for BearerJwtAuthenticator<V>
impl<V> RefUnwindSafe for BearerJwtAuthenticator<V>where
V: RefUnwindSafe,
impl<V> Send for BearerJwtAuthenticator<V>
impl<V> Sync for BearerJwtAuthenticator<V>
impl<V> Unpin for BearerJwtAuthenticator<V>where
V: Unpin,
impl<V> UnsafeUnpin for BearerJwtAuthenticator<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for BearerJwtAuthenticator<V>where
V: UnwindSafe,
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