Sasl MechanismChallenge(String, Cancellation Token) Method
Decode the base64-encoded server challenge and return the next challenge response encoded in base64.
Definition
Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The next base64-encoded challenge response.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
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
StringThe next base64-encoded challenge response.
Remarks
Decodes the base64-encoded server challenge and returns the next challenge response encoded in base64.
Exceptions
| 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. |