Class PGPKeyRingCollection

  • public class PGPKeyRingCollection
    extends Object
    This class describes a logic of handling a collection of different PGPKeyRing. The logic was inspired by PGPSecretKeyRingCollection and PGPPublicKeyRingCollection.
    • Constructor Detail

      • PGPKeyRingCollection

        public PGPKeyRingCollection​(@Nonnull
                                    InputStream in,
                                    boolean isSilent)
                             throws IOException,
        Build a PGPKeyRingCollection from the passed in input stream.
        in - input stream containing data
        isSilent - flag indicating that unsupported objects will be ignored
        IOException - if a problem parsing the base stream occurs
        org.bouncycastle.openpgp.PGPException - if an object is encountered which isn't a PGPSecretKeyRing or PGPPublicKeyRing
    • Method Detail

      • size

        public int size()
        Return the number of rings in this collection.
        total size of PGPSecretKeyRingCollection and PGPPublicKeyRingCollection in this collection