Discuss this help topic in SecureBlackbox Forum

TElPGPKeyring.Save

TElPGPKeyring     See also     


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


Saves keyring to streams.

Declaration

[C#]
    void Save(System.IO.Stream APublic, System.IO.Stream ASecret, bool Armor);
    void Save(string PublicKeysFile, string SecretKeysFile, bool Armor);

[VB.NET]
    Sub Save(ByVal APublic As System.IO.Stream, ByVal ASecret As System.IO.Stream, ByVal Armor As Boolean)
    Sub Save(ByVal PublicKeysFile As String, ByVal SecretKeysFile As String, ByVal Armor As Boolean)

[Pascal]
    procedure Save(APublic, ASecret : TStream; Armor : boolean = false);
    procedure Save(const PublicKeysFile : string; const SecretKeysFile : string; Armor : boolean = false);

[C++]
    void Save(TStream &APublic, TStream &ASecret, bool Armor);
    void Save(TStream *APublic, TStream *ASecret, bool Armor);
    void Save(const std::string &PublicKeysFile, const std::string &SecretKeysFile, bool Armor);

[PHP]
    void Save(TStream $APublic, TStream $ASecret, bool $Armor)
    void Save(string $PublicKeysFile, string $SecretKeysFile, bool $Armor)

[Java]
    void save(OutputStream APublic, OutputStream ASecret, boolean Armor);
    void save(String PublicKeysFile, String SecretKeysFile, boolean Armor);
    void save(TElStream APublic, TElStream ASecret, boolean Armor);

Parameters

  • APublic - stream to which the public keys from the keyring will be written. If this parameter is null/nil/Nothing, then only secret keys will be saved.
  • ASecret - stream to which the private keys from the keyring will be written. If this parameter is null/nil/Nothing, then only public keys will be saved.
  • Armor - True - keys will be armored into base64 representation before saving.
    Default value is False
  • PublicKeysFile - file to which the public keys from the keyring will be written. If this parameter is empty or null/nil/Nothing, then only secret keys will be saved.
  • SecretKeysFile - file to which the private keys from the keyring will be written. If this parameter is empty or null/nil/Nothing, then only public keys will be saved.

Description

    Use this method when you want to save the keys from the keyring to disk or other storage.

See also:     Clear     Load    

Discuss this help topic in SecureBlackbox Forum