Click or drag to resize
MimeKit

SaslMechanismChallenge(String, CancellationToken) Method

Decode the base64-encoded server challenge and return the next challenge response encoded in base64.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public string Challenge(
	string token,
	CancellationToken cancellationToken = default
)

Parameters

token  String
The server's base64-encoded challenge token.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

String
The next base64-encoded challenge response.
Exceptions
ExceptionCondition
NotSupportedException The SASL mechanism does not support SASL-IR.
OperationCanceledException The operation was canceled via the cancellation token.
SaslException An error has occurred while parsing the server's challenge token.
Remarks
Decodes the base64-encoded server challenge and returns the next challenge response encoded in base64.
See Also