X509CertificateCheckValidity(DateTime) Method

Checks if the given date is within certificate's validity period.

Definition

Namespace: Org.BouncyCastle.X509
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public virtual void CheckValidity(
	DateTime time
)

Parameters

time  DateTime
 

Exceptions

CertificateExpiredExceptionif the certificate is expired by given date
CertificateNotYetValidExceptionif the certificate is not yet valid on given date

See Also