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

Namespace: Org.BouncyCastle.X509
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public virtual void CheckValidity(
	DateTime time
)
Visual Basic
Public Overridable Sub CheckValidity ( _
	time As DateTime _
)
Visual C++
public:
virtual void CheckValidity(
	DateTime time
)

Parameters

time
Type: System..::..DateTime

Exceptions

ExceptionCondition
Org.BouncyCastle.Security.Certificates..::..CertificateExpiredExceptionif the certificate is expired by given date
Org.BouncyCastle.Security.Certificates..::..CertificateNotYetValidExceptionif the certificate is not yet valid on given date

See Also