SaslMethodCreateNextClientAnswer Method
When overridden in a derived class, generates client's next answer in the authentication protocol exchange series.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
public abstract void CreateNextClientAnswer()

This method must implement SASL authentication mechanism as generating answer to the server challenge. The server challenge must be read from ServerChallenge property. The resulting answer must be put in ClientAnswer property value.

If SASL mechanism being implemented requires more than one client answer in the series, Stage property can be read and modified by this method in order to keep track of the authentication protocol exchange progress.

This sample shows CreateNextClientAnswer implementation for SASL PLAIN authentication method.
public override void CreateNextClientAnswer()
    switch (Stage)
        case 0:
            ClientAnswer = ClientAnswerEncoding.GetBytes("\0" + AccountName + "\0" + Password);
See Also