Click or drag to resize
MimeKit

CryptographyContextCanSign Method

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

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
public abstract 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, .

Implements

ICryptographyContextCanSign(MailboxAddress, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionsigner is .
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Checks whether as particular mailbocx address can be used for signing.
See Also