Class PgpPrivateKey
- Namespace
- Org.BouncyCastle.Bcpg.OpenPgp
- Assembly
- BouncyCastle.Cryptography.dll
public class PgpPrivateKey
- Inheritance
-
PgpPrivateKey
- Inherited Members
Remarks
General class to contain a private key for use with other OpenPGP objects.
Constructors
PgpPrivateKey(long, PublicKeyPacket, AsymmetricKeyParameter)
Create a PgpPrivateKey from a keyID, the associated public data packet, and a regular private key.
public PgpPrivateKey(long keyID, PublicKeyPacket publicKeyPacket, AsymmetricKeyParameter privateKey)
Parameters
keyIDlongID of the corresponding public key.
publicKeyPacketPublicKeyPacketthe public key data packet to be associated with this private key.
privateKeyAsymmetricKeyParameterthe private key data packet to be associated with this private key.
Properties
Key
The contained private key.
public AsymmetricKeyParameter Key { get; }
Property Value
KeyId
The keyId associated with the contained private key.
public long KeyId { get; }
Property Value
PublicKeyPacket
The public key packet associated with this private key, if available.
public PublicKeyPacket PublicKeyPacket { get; }