Class PgpSecretKeyRingBundle
- Namespace
- Enterprises.Org.BouncyCastle.Bcpg.OpenPgp
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public class PgpSecretKeyRingBundle
- Inheritance
-
PgpSecretKeyRingBundle
- Inherited Members
-
Constructors
PgpSecretKeyRingBundle(byte[])
public PgpSecretKeyRingBundle(byte[] encoding)
Parameters
encoding
byte[]
PgpSecretKeyRingBundle(IEnumerable)
public PgpSecretKeyRingBundle(IEnumerable e)
Parameters
e
IEnumerable
PgpSecretKeyRingBundle(Stream)
public PgpSecretKeyRingBundle(Stream inputStream)
Parameters
inputStream
Stream
Properties
Count
public int Count { get; }
Property Value
- int
Size
[Obsolete("Use 'Count' property instead")]
public int Size { get; }
Property Value
- int
Methods
AddSecretKeyRing(PgpSecretKeyRingBundle, PgpSecretKeyRing)
public static PgpSecretKeyRingBundle AddSecretKeyRing(PgpSecretKeyRingBundle bundle, PgpSecretKeyRing secretKeyRing)
Parameters
bundle
PgpSecretKeyRingBundle
secretKeyRing
PgpSecretKeyRing
Returns
- PgpSecretKeyRingBundle
Contains(long)
public bool Contains(long keyID)
Parameters
keyID
long
Returns
- bool
Encode(Stream)
public void Encode(Stream outStr)
Parameters
outStr
Stream
GetEncoded()
public byte[] GetEncoded()
Returns
- byte[]
GetKeyRings()
public IEnumerable GetKeyRings()
Returns
- IEnumerable
GetKeyRings(string)
public IEnumerable GetKeyRings(string userId)
Parameters
userId
string
Returns
- IEnumerable
GetKeyRings(string, bool)
public IEnumerable GetKeyRings(string userId, bool matchPartial)
Parameters
userId
string
matchPartial
bool
Returns
- IEnumerable
GetKeyRings(string, bool, bool)
public IEnumerable GetKeyRings(string userId, bool matchPartial, bool ignoreCase)
Parameters
userId
string
matchPartial
bool
ignoreCase
bool
Returns
- IEnumerable
GetSecretKey(long)
public PgpSecretKey GetSecretKey(long keyId)
Parameters
keyId
long
Returns
- PgpSecretKey
GetSecretKeyRing(long)
public PgpSecretKeyRing GetSecretKeyRing(long keyId)
Parameters
keyId
long
Returns
- PgpSecretKeyRing
RemoveSecretKeyRing(PgpSecretKeyRingBundle, PgpSecretKeyRing)
public static PgpSecretKeyRingBundle RemoveSecretKeyRing(PgpSecretKeyRingBundle bundle, PgpSecretKeyRing secretKeyRing)
Parameters
bundle
PgpSecretKeyRingBundle
secretKeyRing
PgpSecretKeyRing
Returns
- PgpSecretKeyRingBundle