Click or drag to resize
MimeKit

SaslMechanismLoginChallenge Method (Byte, Int32, Int32)

Parses the server's challenge token and returns the next challenge response.

Namespace:  MailKit.Security
Assembly:  MailKit (in MailKit.dll) Version: 2.10.0
Syntax
C#
protected override byte[] Challenge(
	byte[] token,
	int startIndex,
	int length
)

Parameters

token
Type: SystemByte
The server's challenge token.
startIndex
Type: SystemInt32
The index into the token specifying where the server's challenge begins.
length
Type: SystemInt32
The length of the server's challenge.

Return Value

Type: Byte
The next challenge response.
Exceptions
ExceptionCondition
InvalidOperationException The SASL mechanism is already authenticated.
NotSupportedException The SASL mechanism does not support SASL-IR.
SaslException An error has occurred while parsing the server's challenge token.
Remarks
Parses the server's challenge token and returns the next challenge response.
See Also