Struct scram::ServerFirst [] [src]

pub struct ServerFirst<'a> {
    // some fields omitted
}

The second state of the SCRAM mechanism after the first client message was computed.

Methods

impl<'a> ServerFirst<'a>
[src]

fn handle_server_first(self, server_first: &str) -> Result<ClientFinalError>

Processes the first answer from the server and returns the next state or an error. If an error is returned the SCRAM handshake is aborted.

Call the ClientFinal::client_final method to continue the handshake.

Return value

This method returns only a subset of the errors defined in Error:

  • Error::Protocol
  • Error::UnsupportedExtension

Trait Implementations

impl<'a> Debug for ServerFirst<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.