Discuss this help topic in SecureBlackbox Forum

TElPGPKeyring.AddPublicKey

TElPGPKeyring     See also     


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


Adds a public key to the key ring.

Declaration

[C#]
    int AddPublicKey(TElPGPPublicKey Key);

[VB.NET]
    Function AddPublicKey(ByVal Key As TElPGPPublicKey) As Integer

[Pascal]
    function AddPublicKey(Key : TElPGPPublicKey) : integer;

[C++]
    int32_t AddPublicKey(TElPGPPublicKey &Key);
    int32_t AddPublicKey(TElPGPPublicKey *Key);

[PHP]
    integer AddPublicKey(TElPGPPublicKey $Key)

[Java]
    int addPublicKey(TElPGPPublicKey Key);

Parameters

  • Key - public key to be added.

Return value

    Index of the newly added key.

Description

    Use this method when you need to add new public key to key ring. The 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 call to this method.

See also:     AddSecretKey     AddX509Certitficate     FindPublicKeyByID     RemovePublicKey     Clear     ExportTo     Load     Save     PublicCount     PublicKeys    

Discuss this help topic in SecureBlackbox Forum