Empty PGPKeyRing or PGPKeyRingCollection in Bouncy Castle

339 views Asked by At

How to create an empty PGPKeyRing or PGPKeyRingCollection in Bouncy Castle ?

1

There are 1 answers

0
Saurabh On

This worked for me

PGPSecretKeyRingCollection aSecretKeyRingCollection = new PGPSecretKeyRingCollection(new ArrayList<>());