Checks if the given date is within certificate's validity period.
Namespace: Org.BouncyCastle.X509Assembly: 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
| Exception | Condition |
|---|---|
| Org.BouncyCastle.Security.Certificates..::..CertificateExpiredException | if the certificate is expired by given date |
| Org.BouncyCastle.Security.Certificates..::..CertificateNotYetValidException | if the certificate is not yet valid on given date |