Returns a new key ring with the secret key passed in either added or replacing an existing one with the same key ID.

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

Syntax

C#
public static PgpSecretKeyRing InsertSecretKey(
	PgpSecretKeyRing secRing,
	PgpSecretKey secKey
)
Visual Basic
Public Shared Function InsertSecretKey ( _
	secRing As PgpSecretKeyRing, _
	secKey As PgpSecretKey _
) As PgpSecretKeyRing
Visual C++
public:
static PgpSecretKeyRing^ InsertSecretKey(
	PgpSecretKeyRing^ secRing, 
	PgpSecretKey^ secKey
)

Parameters

secRing
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKeyRing
The secret key ring to be modified.
secKey
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKey
The secret key to be inserted.

Return Value

A new PgpSecretKeyRing

See Also