SSLClientAuthentication Event
Fired when the client presents its credentials to the server.
Syntax
typedef struct { String RemoteAddress; int RemotePort; String CertEncoded; DynamicArray<Byte> CertEncodedB; String CertSubject; String CertIssuer; String Status; bool Accept; } TipnSNMPTCPAgentSSLClientAuthenticationEventParams; typedef void __fastcall (__closure *TipnSNMPTCPAgentSSLClientAuthenticationEvent)(System::TObject* Sender, TipnSNMPTCPAgentSSLClientAuthenticationEventParams *e); __property TipnSNMPTCPAgentSSLClientAuthenticationEvent OnSSLClientAuthentication = { read=FOnSSLClientAuthentication, write=FOnSSLClientAuthentication };
Remarks
This event fires when a client connects to the component and presents a certificate for authentication. The Accept parameter is a recommendation on whether to continue or close the connection. This is just a suggestion: application software must use its own logic to determine whether to continue or not.
When Accept is False, Status shows why the verification failed (otherwise, Status contains the string "OK").
RemoteAddress is the IP address of the connecting client.
RemotePort is the source port of the connecting client.
CertEncoded is the base64 encoded certificate presented by the client.
CertSubject is the subject of the certificate presented by the client.
CertIssuer is the subject of the issuer of the certificate presented by the client.
Status is the stauts of the certificate.
Accept defines whether the certificate is accepted.