pub struct StaticTokenAuthenticator { /* private fields */ }Implementations§
Source§impl StaticTokenAuthenticator
impl StaticTokenAuthenticator
pub fn new(store: NativeCredentialStore) -> Self
Trait Implementations§
Source§impl Debug for StaticTokenAuthenticator
impl Debug for StaticTokenAuthenticator
Source§impl TokenAuthenticator for StaticTokenAuthenticator
impl TokenAuthenticator for StaticTokenAuthenticator
Source§fn authenticate_bearer<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Principal, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate_bearer<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Principal, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Authenticate a Bearer token and return the associated
Principal.Auto Trait Implementations§
impl Freeze for StaticTokenAuthenticator
impl RefUnwindSafe for StaticTokenAuthenticator
impl Send for StaticTokenAuthenticator
impl Sync for StaticTokenAuthenticator
impl Unpin for StaticTokenAuthenticator
impl UnsafeUnpin for StaticTokenAuthenticator
impl UnwindSafe for StaticTokenAuthenticator
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