Trait imap::Authenticator [−][src]
pub trait Authenticator { type Response: AsRef<[u8]>; fn process(&self, challenge: &[u8]) -> Self::Response; }
Expand description
This trait allows for pluggable authentication schemes. It is used by Client::authenticate
to
authenticate using SASL.
Associated Types
type Response: AsRef<[u8]>
[src]
Expand description
The type of the response to the challenge. This will usually be a Vec<u8>
or String
.
Required methods
fn process(&self, challenge: &[u8]) -> Self::Response
[src]
Expand description
Each base64-decoded server challenge is passed to process
.
The returned byte-string is base64-encoded and then sent back to the server.