Click or drag to resize
MimeKit

OpenPgpContextIsExpired Method

Check if a public key is expired.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected static bool IsExpired(
	PgpPublicKey key
)

Parameters

key  PgpPublicKey
The public key.

Return Value

Boolean
true if the public key is expired; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
Remarks
Checks if a public key is expired.
See Also