Discuss this help topic in SecureBlackbox Forum

TElPGPKeyring.RemovePublicKey

TElPGPKeyring     See also     


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


Removes one of public keys from the key ring.

Declaration

[C#/Java]
    bool RemovePublicKey(TElPGPPublicKey Key, bool RemoveSecretKeyIfExists);
    bool RemovePublicKey(int Index, bool RemoveSecretKeyIfExists);

[VB.NET]
    Function RemovePublicKey(ByVal Key As TElPGPPublicKey, ByVal RemoveSecretKeyIfExists As Boolean) As Boolean
    Function RemovePublicKey(ByVal Index As Integer, ByVal RemoveSecretKeyIfExists As Boolean) As Boolean

[Pascal]
    function RemovePublicKey(Key : TElPGPPublicKey; RemoveSecretKeyIfExists : boolean = false) : boolean;
    function RemovePublicKey(Index : integer; RemoveSecretKeyIfExists : boolean = false) : boolean;

[C++]
    bool RemovePublicKey(TElPGPPublicKey &Key, bool RemoveSecretKeyIfExists);
    bool RemovePublicKey(TElPGPPublicKey *Key, bool RemoveSecretKeyIfExists);
    bool RemovePublicKey(int32_t Index, bool RemoveSecretKeyIfExists);

[PHP]
    bool RemovePublicKey(TElPGPPublicKey $Key, bool $RemoveSecretKeyIfExists)
    bool RemovePublicKey(integer $Index, bool $RemoveSecretKeyIfExists)

Parameters

  • Key - public key to be removed.
  • Index - index of the public key to be removed.
  • RemoveSecretKeyIfExists - the key must be deleted even if there is a secret one that corresponds it.
    Default value is False.

Return value

     True on success.
     False otherwise.

Description

    Use this method when you need to remove public key from the key ring.

See also:     AddPublicKey     FindPublicKeyByID     RemoveSecretKey     Clear     Load     Save     PublicCount     PublicKeys    

Discuss this help topic in SecureBlackbox Forum