Java org.bouncycastle.openpgp PGPSecretKeyRingCollection fields, constructors, methods, implement or subclass

Example usage for Java org.bouncycastle.openpgp PGPSecretKeyRingCollection fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.bouncycastle.openpgp PGPSecretKeyRingCollection.

The text is from its open source code.

Constructor

Method

PGPSecretKeyRingCollectionaddSecretKeyRing(PGPSecretKeyRingCollection ringCollection, PGPSecretKeyRing secretKeyRing)
Return a new collection object containing the contents of the passed in collection and the passed in secret key ring.
booleancontains(long keyID)
Return true if a key matching the passed in key ID is present, false otherwise.
voidencode(OutputStream outStream)
IteratorgetKeyRings()
return the secret key rings making up this collection.
IteratorgetKeyRings(String userID)
Return an iterator of the key rings associated with the passed in userID.
IteratorgetKeyRings(String userID, boolean matchPartial)
Return an iterator of the key rings associated with the passed in userID.
PGPSecretKeygetSecretKey(long keyID)
Return the PGP secret key associated with the given key id.
PGPSecretKeyRinggetSecretKeyRing(long keyID)
Return the secret key ring which contains the key referred to by keyID.
Iteratoriterator()
Support method for Iterable where available.
PGPSecretKeyRingCollectionremoveSecretKeyRing(PGPSecretKeyRingCollection ringCollection, PGPSecretKeyRing secretKeyRing)
Return a new collection object containing the contents of this collection with the passed in secret key ring removed.
intsize()
Return the number of rings in this collection.