Discuss this help topic in SecureBlackbox Forum

TElCMSSignature.OnIsCertificateTrusted

TElCMSSignature     See also     


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


This event is fired during the signature validation.

Declaration

[C#]
    event TSBCMSCertificateTrustedEvent OnIsCertificateTrusted;
    delegate void TSBCMSCertificateTrustedEvent(Object Sender, TElX509Certificate Cert, ref bool Trusted);

[VB.NET]
    Event OnIsCertificateTrusted As TSBCMSCertificateTrustedEvent
    Delegate Sub TSBCMSCertificateTrustedEvent(ByVal Sender As Object, ByVal Cert As TElX509Certificate, ByRef Trusted As Boolean)

[Pascal]
    property OnIsCertificateTrusted: TSBCMSCertificateTrustedEvent;
    TSBCMSCertificateTrustedEvent = procedure(Sender : TObject; Cert : TElX509Certificate; var Trusted : boolean) of object;

[C++]
    void get_OnIsCertificateTrusted(TSBCMSCertificateTrustedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnIsCertificateTrusted(TSBCMSCertificateTrustedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBCMSCertificateTrustedEvent)(void * _ObjectData, TObjectHandle Sender, TElX509CertificateHandle Cert, int8_t &Trusted);

[PHP]
    TSBCMSCertificateTrustedEvent|callable|NULL get_OnIsCertificateTrusted()
    void set_OnIsCertificateTrusted(TSBCMSCertificateTrustedEvent|callable|NULL $Value)
    callable TSBCMSCertificateTrustedEvent(TObject $Sender, TElX509Certificate $Cert, bool &$Trusted)

[Java]
    TSBCMSCertificateTrustedEvent getOnIsCertificateTrusted();
    void setOnIsCertificateTrusted(TSBCMSCertificateTrustedEvent Value);
    TSBCMSCertificateTrustedEvent.Callback OnIsCertificateTrusted = new TSBCMSCertificateTrustedEvent.Callback() {
        public void TSBCMSCertificateTrustedEventCallback(TObject Sender, TElX509Certificate Cert, TSBBoolean Trusted) {
            //...
        }
    }

Parameters

  • Cert - the X.509 certificate for which trust is unknown
  • Trusted - specifies, if the certificate is trusted, or not

Description

    This event is fired by TElCMSSignature during the signature validation in order to ask, if the user trusts the current certificate. It is fired once for each certificate forming a chain starting from the end-entity certificate, until the first trusted certificate is reached.

See also:     Validate    

Discuss this help topic in SecureBlackbox Forum