Discuss this help topic in SecureBlackbox Forum

TElCustomSimpleSSLClient.OnCertificateChoose

TElCustomSimpleSSLClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when the component needs to select a certificate to be used.

Declaration

[C#]
    event TSBChooseCertificateEvent OnCertificateChoose;
    delegate void TSBChooseCertificateEvent(Object Sender, TElX509Certificate[] Certificates, ref int CertificateIndex);

[VB.NET]
    Event OnCertificateChoose As TSBChooseCertificateEvent
    Delegate Sub TSBChooseCertificateEvent(ByVal Sender As Object, ByVal Certificates As TElX509Certificate[], ByRef CertificateIndex As Integer)

[Pascal]
    property OnCertificateChoose : TSBChooseCertificateEvent;
    TSBChooseCertificateEvent = procedure(Sender : TObject; Certificates : array of TElX509Certificate; var CertificateIndex : Integer) of object;

[C++]
    void get_OnCertificateChoose(TSBChooseCertificateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCertificateChoose(TSBChooseCertificateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBChooseCertificateEvent)(void * _ObjectData, TObjectHandle Sender, const TElX509CertificateHandle pCertificates[], int32_t szCertificates, int32_t &CertificateIndex);

[PHP]
    TSBChooseCertificateEvent|callable|NULL get_OnCertificateChoose()
    void set_OnCertificateChoose(TSBChooseCertificateEvent|callable|NULL $Value)
    callable TSBChooseCertificateEvent(TObject $Sender, array of TElX509Certificate $Certificates, integer &$CertificateIndex)

[Java]
    TSBChooseCertificateEvent getOnCertificateChoose();
    void setOnCertificateChoose(TSBChooseCertificateEvent Value);
    TSBChooseCertificateEvent.Callback OnCertificateChoose = new TSBChooseCertificateEvent.Callback() {
        public void TSBChooseCertificateEventCallback(TObject Sender, TElX509Certificate[] Certificates, int[] CertificateIndex) {
            //...
        }
    }

Parameters

  • Certificates - the array of certificates one of which has to be chosen.
  • CertificateIndex - the index of the chosen certificate.
  • pCertificates - the array of certificates one of which has to be chosen.
  • szCertificates - the length of pcCertificates.

Description

    This event is fired when the certificate needs to be chosen. The application must find the appropriate certificate in the Certificates and provide its index via CertificateIndex parameter.

See also:     OnCertificateNeededEx    

Discuss this help topic in SecureBlackbox Forum