Create a PgpPrivateKey from a regular private key and the ID of its associated public key.

Namespace: Org.BouncyCastle.Bcpg.OpenPgp
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public PgpPrivateKey(
	AsymmetricKeyParameter privateKey,
	long keyId
)
Visual Basic
Public Sub New ( _
	privateKey As AsymmetricKeyParameter, _
	keyId As Long _
)
Visual C++
public:
PgpPrivateKey(
	AsymmetricKeyParameter^ privateKey, 
	long long keyId
)

Parameters

privateKey
Type: Org.BouncyCastle.Crypto..::..AsymmetricKeyParameter
Private key to use.
keyId
Type: System..::..Int64
ID of the corresponding public key.

See Also