Data.DBXCommonIndy.TX509CertificateIndy.CheckValidity

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CheckValidity; overload; override;
procedure CheckValidity(ADate: TDateTime); overload; override;

C++

virtual void __fastcall CheckValidity()/* overload */;
virtual void __fastcall CheckValidity(System::TDateTime ADate)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DBXCommonIndy.pas
Data.DBXCommonIndy.hpp
Data.DBXCommonIndy TX509CertificateIndy

Description

Check the validity of the current certificate.

The CheckValidity method has two overloads for the purpose of checking the validity for the current certificate.

The first CheckValidity overload verifies if the certificate is currently valid. A certificate is declared as valid if 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 CheckValidity overload determines whether the certificate would be valid at the given date and time. The ADate is of TDateTime type 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.

See Also