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.5.0 build 687 for .NET 4.5
Syntax
public abstract void CreateNextClientAnswer()
Remarks

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.

Examples
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);
            Stage++;
            break;
    }
}
See Also