Exports private key from this OpenPGP key store as a byte array.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public virtual byte[] ExportPrivateKeyBytes( long keyId ) |
| Visual Basic |
|---|
Public Overridable Function ExportPrivateKeyBytes ( _ keyId As Long _ ) As Byte() |
| Visual C++ |
|---|
public: virtual array<unsigned char>^ ExportPrivateKeyBytes( long long keyId ) |
Parameters
- keyId
- Type: System..::..Int64
Key Id of the corresponding public key
Return Value
requested Private key as byte array
Exceptions
| Exception | Condition |
|---|---|
| DidiSoft.Pgp.Exceptions..::..WrongPrivateKeyException | If there is no private key in this key pair |
| System.IO..::..IOException | if an I/O error occurs. |