Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/java/org/spongycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java')
-rw-r--r--pg/src/main/java/org/spongycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/pg/src/main/java/org/spongycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java b/pg/src/main/java/org/spongycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java
new file mode 100644
index 00000000..e769f0ad
--- /dev/null
+++ b/pg/src/main/java/org/spongycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java
@@ -0,0 +1,32 @@
+package org.spongycastle.openpgp.bc;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Collection;
+
+import org.spongycastle.openpgp.PGPException;
+import org.spongycastle.openpgp.PGPPublicKeyRingCollection;
+import org.spongycastle.openpgp.operator.bc.BcKeyFingerprintCalculator;
+
+public class BcPGPPublicKeyRingCollection
+ extends PGPPublicKeyRingCollection
+{
+ public BcPGPPublicKeyRingCollection(byte[] encoding)
+ throws IOException, PGPException
+ {
+ this(new ByteArrayInputStream(encoding));
+ }
+
+ public BcPGPPublicKeyRingCollection(InputStream in)
+ throws IOException, PGPException
+ {
+ super(in, new BcKeyFingerprintCalculator());
+ }
+
+ public BcPGPPublicKeyRingCollection(Collection collection)
+ throws IOException, PGPException
+ {
+ super(collection);
+ }
+}