Sasl Mechanism AnonymousChallenge(Byte, Int 32, Int 32, Cancellation Token) Method
Parse the server's challenge token and return the next challenge response.
Definition
Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The next challenge response.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
protected override byte[]? Challenge(
byte[]? token,
int startIndex,
int length,
CancellationToken cancellationToken
)Parameters
- token Byte
- The server's challenge token.
- startIndex Int32
- The index into the token specifying where the server's challenge begins.
- length Int32
- The length of the server's challenge.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
ByteThe next challenge response.
Remarks
Parses the server's challenge token and returns the next challenge response.
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. |