Discuss this help topic in SecureBlackbox Forum

TElSSLPGPCertificateTypeHandler.OnKeyValidate

TElSSLPGPCertificateTypeHandler     See also     


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


This event is fired when the component needs to validate the OpenPGP key presented by the other side.

Declaration

[C#]
    event TElPGPSSLKeyValidateEvent OnKeyValidate;
    delegate void TElPGPSSLKeyValidateEvent(Object Sender, TElPGPPublicKey Key, ref TSBPGPSignatureValidity Validity);

[VB.NET]
    Event OnKeyValidate As TElPGPSSLKeyValidateEvent
    Delegate Sub TElPGPSSLKeyValidateEvent(ByVal Sender As Object, ByVal Key As TElPGPPublicKey, ByRef Validity As TSBPGPSignatureValidity)

[Pascal]
    Property OnKeyValidate : TElPGPSSLKeyValidateEvent;
    TElPGPSSLKeyValidateEvent = function(Sender: TObject; Key : TElPGPPublicKey; var Validity : TSBPGPSignatureValidity) of object;

[C++]
    void get_OnKeyValidate(TElPGPSSLKeyValidateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyValidate(TElPGPSSLKeyValidateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElPGPSSLKeyValidateEvent)(void * _ObjectData, TObjectHandle Sender, TElPGPPublicKeyHandle Key, TSBPGPSignatureValidityRaw &Validity);

[PHP]
    TElPGPSSLKeyValidateEvent|callable|NULL get_OnKeyValidate()
    void set_OnKeyValidate(TElPGPSSLKeyValidateEvent|callable|NULL $Value)
    callable TElPGPSSLKeyValidateEvent(TObject $Sender, TElPGPPublicKey $Key, integer &$Validity)

[Java]
    TElPGPSSLKeyValidateEvent getOnKeyValidate();
    void setOnKeyValidate(TElPGPSSLKeyValidateEvent Value);
    TElPGPSSLKeyValidateEvent.Callback OnKeyValidate = new TElPGPSSLKeyValidateEvent.Callback() {
        public TSBPGPSignatureValidity TElPGPSSLKeyValidateEventCallback(TObject Sender, TElPGPPublicKey Key, TSBPGPSignatureValidity Validity) {
            //...
        }
    }

Parameters

  • Key - The key to be validated
  • Validity - Set this parameter to the validity of the key

Values

Description

    This event is used to validate the OpenPGP key presented by the other side. The application must check the key and set Validity parameter of the event according to results of verification.

See also:     OnKeyFind    

Discuss this help topic in SecureBlackbox Forum