Datasnap.DSHTTPClient.TDSHTTP.OnValidatePeerCertificate
Delphi
property OnValidatePeerCertificate: TValidateCertificate read FOnValidatePeerCertificate write FOnValidatePeerCertificate;
C++
__property Data::Dbxcommon::TValidateCertificate OnValidatePeerCertificate = {read=FOnValidatePeerCertificate, write=FOnValidatePeerCertificate};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | Datasnap.DSHTTPClient.pas Datasnap.DSHTTPClient.hpp |
Datasnap.DSHTTPClient | TDSHTTP |
Description
Occurs when the peer SSL certificate is about to be validated.
Use the OnValidatePeerCertificate event to implement further functionality when the peer certificate is about to be validated.
The event handler of OnValidatePeerCertificate receives the following parameters:
Owner
:object that invokes the callback.Certificate
: X.509 certificate.ADepth
: Number of certificates to be validated.Ok
:True
if the certificate is valid,False
otherwise.