pub struct NoneAuthenticator;Expand description
Authenticator for the none scheme.
Accepts any credentials block but only when negotiated.anonymous is
true. The principal field is "anonymous".
Implementations§
Trait Implementations§
Source§impl Authenticator for NoneAuthenticator
impl Authenticator for NoneAuthenticator
Source§fn scheme(&self) -> AuthScheme
fn scheme(&self) -> AuthScheme
Scheme this authenticator handles.
Source§fn authenticate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_creds: &'life1 Credentials,
_client: &'life2 ClientIdentity,
negotiated: &'life3 Capabilities,
) -> Pin<Box<dyn Future<Output = Result<AuthOutcome, ARCPError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn authenticate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_creds: &'life1 Credentials,
_client: &'life2 ClientIdentity,
negotiated: &'life3 Capabilities,
) -> Pin<Box<dyn Future<Output = Result<AuthOutcome, ARCPError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Validate
creds against the runtime trust store. Read moreSource§fn verify_challenge_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_challenge: &'life1 str,
_response: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AuthOutcome, ARCPError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn verify_challenge_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_challenge: &'life1 str,
_response: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AuthOutcome, ARCPError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Verify the response to a previously issued challenge. Default
implementation rejects everything (single-shot schemes don’t need
to override). Read more
Source§impl Debug for NoneAuthenticator
impl Debug for NoneAuthenticator
Source§impl Default for NoneAuthenticator
impl Default for NoneAuthenticator
Source§fn default() -> NoneAuthenticator
fn default() -> NoneAuthenticator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoneAuthenticator
impl RefUnwindSafe for NoneAuthenticator
impl Send for NoneAuthenticator
impl Sync for NoneAuthenticator
impl Unpin for NoneAuthenticator
impl UnsafeUnpin for NoneAuthenticator
impl UnwindSafe for NoneAuthenticator
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