diff options
Diffstat (limited to 'pg/src/main/java/org/bouncycastle/openpgp/jcajce')
5 files changed, 0 insertions, 152 deletions
diff --git a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPObjectFactory.java b/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPObjectFactory.java deleted file mode 100644 index bff681ab..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPObjectFactory.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.bouncycastle.openpgp.jcajce; - -import java.io.ByteArrayInputStream; -import java.io.InputStream; - -import org.bouncycastle.openpgp.PGPObjectFactory; -import org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator; - -/** - * {@link PGPObjectFactory} that uses the sources cryptographic primitives from the JCA API. - */ -public class JcaPGPObjectFactory - extends PGPObjectFactory -{ - /** - * Construct an object factory to read PGP objects from encoded data. - * - * @param encoded the PGP encoded data. - */ - public JcaPGPObjectFactory(byte[] encoded) - { - this(new ByteArrayInputStream(encoded)); - } - - /** - * Construct an object factory to read PGP objects from a stream. - * - * @param in the stream containing PGP encoded objects. - */ - public JcaPGPObjectFactory(InputStream in) - { - // FIXME: Convert this to builder style so we can set provider? - super(in, new JcaKeyFingerprintCalculator()); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPPublicKeyRing.java b/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPPublicKeyRing.java deleted file mode 100644 index b2281d28..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPPublicKeyRing.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.bouncycastle.openpgp.jcajce; - -import java.io.IOException; -import java.io.InputStream; - -import org.bouncycastle.openpgp.PGPPublicKeyRing; -import org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator; -import org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator; - -public class JcaPGPPublicKeyRing - extends PGPPublicKeyRing -{ - private static KeyFingerPrintCalculator fingerPrintCalculator = new JcaKeyFingerprintCalculator(); - - public JcaPGPPublicKeyRing(byte[] encoding) - throws IOException - { - super(encoding, fingerPrintCalculator); - } - - public JcaPGPPublicKeyRing(InputStream in) - throws IOException - { - super(in, fingerPrintCalculator); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPPublicKeyRingCollection.java b/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPPublicKeyRingCollection.java deleted file mode 100644 index 3771b0d9..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPPublicKeyRingCollection.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.bouncycastle.openpgp.jcajce; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Collection; - -import org.bouncycastle.openpgp.PGPException; -import org.bouncycastle.openpgp.PGPPublicKeyRingCollection; -import org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator; - -public class JcaPGPPublicKeyRingCollection - extends PGPPublicKeyRingCollection -{ - public JcaPGPPublicKeyRingCollection(byte[] encoding) - throws IOException, PGPException - { - this(new ByteArrayInputStream(encoding)); - } - - public JcaPGPPublicKeyRingCollection(InputStream in) - throws IOException, PGPException - { - super(in, new JcaKeyFingerprintCalculator()); - } - - public JcaPGPPublicKeyRingCollection(Collection collection) - throws IOException, PGPException - { - super(collection); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java b/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java deleted file mode 100644 index 735d4e57..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPSecretKeyRing.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.bouncycastle.openpgp.jcajce; - -import java.io.IOException; -import java.io.InputStream; - -import org.bouncycastle.openpgp.PGPException; -import org.bouncycastle.openpgp.PGPSecretKeyRing; -import org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator; -import org.bouncycastle.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); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPSecretKeyRingCollection.java b/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPSecretKeyRingCollection.java deleted file mode 100644 index 4cde4e2b..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/jcajce/JcaPGPSecretKeyRingCollection.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.bouncycastle.openpgp.jcajce; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Collection; - -import org.bouncycastle.openpgp.PGPException; -import org.bouncycastle.openpgp.PGPSecretKeyRingCollection; -import org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator; - -public class JcaPGPSecretKeyRingCollection - extends PGPSecretKeyRingCollection -{ - public JcaPGPSecretKeyRingCollection(byte[] encoding) - throws IOException, PGPException - { - this(new ByteArrayInputStream(encoding)); - } - - public JcaPGPSecretKeyRingCollection(InputStream in) - throws IOException, PGPException - { - super(in, new JcaKeyFingerprintCalculator()); - } - - public JcaPGPSecretKeyRingCollection(Collection collection) - throws IOException, PGPException - { - super(collection); - } -} |