Discuss this help topic in SecureBlackbox Forum

TElAS2Client.OnCertificateValidate

TElAS2Client     See also     


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


This event is fired when the server certificate must be validated.

Declaration

[C#/Java]
    event TSBCertificateValidateEvent OnCertificateValidate;
    delegate void TSBCertificateValidateEvent(Object Sender, TElX509Certificate X509Certificate, ref bool Validate);

[VB.NET]
    Event OnCertificateValidate As TSBCertificateValidateEvent
    Delegate Sub TSBCertificateValidateEvent(ByVal Sender As Object, ByVal X509Certificate As TElX509Certificate, ByRef Validate As Boolean)

[Pascal]
    property OnCertificateValidate : TSBCertificateValidateEvent;
    TSBCertificateValidateEvent = procedure(Sender: TObject; X509Certificate: TElX509Certificate; var Validate: boolean) of object;

[C++]
    void get_OnCertificateValidate(TSBCertificateValidateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCertificateValidate(TSBCertificateValidateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBCertificateValidateEvent)(void * _ObjectData, TObjectHandle Sender, TElX509CertificateHandle X509Certificate, int8_t &Validate);

[PHP]
    TSBCertificateValidateEvent|callable|NULL get_OnCertificateValidate()
    void set_OnCertificateValidate(TSBCertificateValidateEvent|callable|NULL $Value)
    callable TSBCertificateValidateEvent(TObject $Sender, TElX509Certificate $X509Certificate, bool &$Validate)

Parameters

  • X509Certificate - Contains the certificate to be validated.
  • Validate - set this parameter to True (1) if the certificate is valid and should be accepted and False (0) otherwise

Description

    This event is fired by TElAS2Client when the negotiated protocol offers the client to validate the server's certificate, starting from the root CA to the end-entity certificate. It could be checked, whether the certificate is an end-entity one, using Chain property of the certificate. Use methods of the TElX509Certificate class to perform the certificate validation.

See also:     TElX509Certificate    

Discuss this help topic in SecureBlackbox Forum