Returns a new key ring with the secret key passed in removed from the key ring.

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

Syntax

C#
public static PgpSecretKeyRing RemoveSecretKey(
	PgpSecretKeyRing secRing,
	PgpSecretKey secKey
)
Visual Basic
Public Shared Function RemoveSecretKey ( _
	secRing As PgpSecretKeyRing, _
	secKey As PgpSecretKey _
) As PgpSecretKeyRing
Visual C++
public:
static PgpSecretKeyRing^ RemoveSecretKey(
	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 removed.

Return Value

A new PgpSecretKeyRing, or null if secKey is not found.

See Also