Discuss this help topic in SecureBlackbox Forum

TElPGPKeyring.AddSecretKey

TElPGPKeyring     See also     


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


Adds a secret key to the key ring.

Declaration

[C#]
    int AddSecretKey(TElPGPSecretKey Key);

[VB.NET]
    Function AddSecretKey(ByVal Key As TElPGPSecretKey) As Integer

[Pascal]
    function AddSecretKey(Key : TElPGPSecretKey) : integer;

[C++]
    int32_t AddSecretKey(TElPGPSecretKey &Key);
    int32_t AddSecretKey(TElPGPSecretKey *Key);

[PHP]
    integer AddSecretKey(TElPGPSecretKey $Key)

[Java]
    int addSecretKey(TElPGPSecretKey Key);

Parameters

  • Key - secret key to be added.

Return value

    Index of the newly added key.

Description

    Use this method when you need to add new secret key to the key ring. Key is added to key ring with all the corresponding subkeys, signatures and user-ids.
    If such key is already present in the keyring only new information (signatures, subkeys, UserID) will be added.
    Key is copied during adding so Key instance can be freed after the call to this method.

See also:     AddPublicKey     AddX509Certitficate     FindSecretKeyByID     RemoveSecretKey     Clear     ExportTo     Load     Save     SecretCount     SecretKeys    

Discuss this help topic in SecureBlackbox Forum