[−][src]Trait libunftp::auth::Authenticator
Defines the requirements for Authentication implementations
Required methods
#[must_use]pub fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<User, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<User, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Authenticate the given user with the given password.
Provided methods
pub fn name(&self) -> &str
[src]
Implement to set the name of the authenticator. By default it returns the type signature.
Implementors
impl Authenticator<DefaultUser> for AnonymousAuthenticator
[src]
pub fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_username: &'life1 str,
_password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_username: &'life1 str,
_password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Authenticator<DefaultUser> for JsonFileAuthenticator
[src]
pub fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Authenticator<DefaultUser> for PAMAuthenticator
[src]
pub fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Authenticator<DefaultUser> for RestAuthenticator
[src]
pub fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,