Discuss this help topic in SecureBlackbox Forum


TElSSHPublicKeyServer     See also     

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

This event is fired when the client has sent request for a key adding.


    event TSBSSHPublicKeyAddEvent OnAdd;
    delegate void TSBSSHPublicKeyAddEvent(Object Sender, TElSSHKey Key, TElSSHPublicKeyAttributes Attributes, bool Overwrite, ref int ErrorCode, ref string Comment);

    Event OnAdd As TSBSSHPublicKeyAddEvent
    Delegate Sub TSBSSHPublicKeyAddEvent(ByVal Sender As Object, ByVal Key As TElSSHKey, ByVal Attributes As TElSSHPublicKeyAttributes, ByVal Overwrite As Boolean, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnAdd: TSBSSHPublicKeyAddEvent;
    TSBSSHPublicKeyAddEvent = procedure(Sender: TObject; Key: TElSSHKey; Attributes : TElSSHPublicKeyAttributes; Overwrite: boolean; var ErrorCode: integer; var Comment : string) of object;

    void get_OnAdd(TSBSSHPublicKeyAddEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAdd(TSBSSHPublicKeyAddEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHPublicKeyAddEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHKeyHandle Key, TElSSHPublicKeyAttributesHandle Attributes, int8_t Overwrite, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TSBSSHPublicKeyAddEvent|callable|NULL get_OnAdd()
    void set_OnAdd(TSBSSHPublicKeyAddEvent|callable|NULL $Value)
    callable TSBSSHPublicKeyAddEvent(TObject $Sender, TElSSHKey $Key, TElSSHPublicKeyAttributes $Attributes, bool $Overwrite, integer &$ErrorCode, string &$Comment)

    TSBSSHPublicKeyAddEvent getOnAdd();
    void setOnAdd(TSBSSHPublicKeyAddEvent Value);
    TSBSSHPublicKeyAddEvent.Callback OnAdd = new TSBSSHPublicKeyAddEvent.Callback() {
        public void TSBSSHPublicKeyAddEventCallback(TObject Sender, TElSSHKey Key, TElSSHPublicKeyAttributes Attributes, boolean Overwrite, TSBInteger ErrorCode, TSBString Comment) {


  • Key - key - candidate to be added
  • Attributes - key attributes (version 2 only)
  • Overwrite - specifies if key attributes will be overwritten if the key is already present in the storage
  • ErrorCode - operation success code. Has to be assigned inside event handler.
  • Comment - text comment. Has to be inserted inside handler.
  • pcComment - text comment. Has to be inserted inside handler.
  • szComment - the length of pcComment.

ErrorCode values


    This event is fired when client sent the request for public key adding. Server has to add the key or to reject the adding in the event handler. It also has to set ErrorCode and Comment values values inside an event handler according to key adding result.

See also:     OnRemove    

Discuss this help topic in SecureBlackbox Forum