REST.Client.TCustomRESTClient.OnNeedClientCertificate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnNeedClientCertificate: TNeedClientCertificateEvent

C++

__property System::Net::Urlclient::TNeedClientCertificateEvent OnNeedClientCertificate = {read=GetNeedClientCertificateEvent, write=SetNeedClientCertificateEvent};

Properties

Type Visibility Source Unit Parent
event public
REST.Client.pas
REST.Client.hpp
REST.Client TCustomRESTClient

Description

Event triggered when the server requests a client certificate for authentication.

When using this API, assign an event handler to the OnNeedClientCertificate property of your TCustomRESTClient instance. This handler will be called when the server requests a client certificate.

Inside the event handler, you can specify which certificate to use for the connection. This can involve loading a certificate from a file or a specific store.

Attention: When having multiple certificates, you can implement logic within the event handler to select the appropriate one based on the request or other criteria.

See Also