ICryptographyContextCanSign Method

Check whether a particular mailbox address can be used for signing.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
bool CanSign(
	MailboxAddress signer,
	CancellationToken cancellationToken = default
)

Parameters

signer  MailboxAddress
The signer.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

Boolean
if the mailbox address can be used for signing; otherwise, .

Remarks

Checks whether as particular mailbocx address can be used for signing.

Exceptions

ArgumentNullException signer is .
OperationCanceledException The operation was canceled via the cancellation token.

See Also