API:REST.Client.TRESTClient.OnNeedClientCertificate
Delphi
property OnNeedClientCertificate;
C++
__property OnNeedClientCertificate;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | REST.Client.pas REST.Client.hpp |
REST.Client | TRESTClient |
Description
Event triggered when the server requests a client certificate for authentication.
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.