pub trait Client {
// Required methods
fn start(&mut self) -> Result<(String, Vec<u8>)>;
fn next(&mut self, challenge: &[u8]) -> Result<Vec<u8>>;
}
Expand description
Client interface to perform challenge-response authentication.
Required Methods§
Sourcefn start(&mut self) -> Result<(String, Vec<u8>)>
fn start(&mut self) -> Result<(String, Vec<u8>)>
Begins SASL authentication with the server. It returns the authentication mechanism name and “initial response” data (if required by the selected mechanism). A non-nil error causes the client to abort the authentication attempt.
A nil ir value is different from a zero-length value. The nil value indicates that the selected mechanism does not use an initial response, while a zero-length value indicates an empty initial respons e, which must be sent to the server.