Data.DBXCommon.TX509Certificate.CheckValidity
Delphi
procedure CheckValidity; overload; virtual; abstract;
procedure CheckValidity(ADate: TDateTime); overload; virtual; abstract;
C++
virtual void __fastcall CheckValidity() = 0 /* overload */;
virtual void __fastcall CheckValidity(System::TDateTime ADate) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DBXCommon.pas Data.DBXCommon.hpp |
Data.DBXCommon | TX509Certificate |
Description
Virtual abstract method to be implemented in child classes to check the validity of the current certificate.
The CheckValidity virtual abstract method has two overloads to be implemented in child classes in order to check the validity of the current certificate.
The first CheckValidity overload verifies whether the certificate is currently valid. A certificate is declared valid if the current date and time are within the validity period given in the certificate.
The second CheckValidity overload checks that the given date is within the certificate's validity period. This means that the CheckValidity overload determines whether the certificate will be valid at the given date and time. The ADate is of type TDateTime and represents the given date and time stamp.
Note: The validity period consists of two date and time values: GetNotAfter and GetNotBefore. If the validity check fails, CheckValidity throws an appropriate exception such as ECertificateExpiredException or ECertificateNotYetValidException.