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/jcajce/JcaPGPSecretKeyRing.java')
-rw-r--r--pg/src/main/java/org/spongycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/pg/src/main/java/org/spongycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java b/pg/src/main/java/org/spongycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java
new file mode 100644
index 00000000..9e1395a6
--- /dev/null
+++ b/pg/src/main/java/org/spongycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java
@@ -0,0 +1,27 @@
+package org.spongycastle.openpgp.jcajce;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.spongycastle.openpgp.PGPException;
+import org.spongycastle.openpgp.PGPSecretKeyRing;
+import org.spongycastle.openpgp.operator.KeyFingerPrintCalculator;
+import org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator;
+
+public class JcaPGPSecretKeyRing
+ extends PGPSecretKeyRing
+{
+ private static KeyFingerPrintCalculator fingerPrintCalculator = new JcaKeyFingerprintCalculator();
+
+ public JcaPGPSecretKeyRing(byte[] encoding)
+ throws IOException, PGPException
+ {
+ super(encoding, fingerPrintCalculator);
+ }
+
+ public JcaPGPSecretKeyRing(InputStream in)
+ throws IOException, PGPException
+ {
+ super(in, fingerPrintCalculator);
+ }
+}