aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/operator/bc/BcPGPKeyPair.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/operator/bc/BcPGPKeyPair.java')
-rw-r--r--libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/operator/bc/BcPGPKeyPair.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/operator/bc/BcPGPKeyPair.java b/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/operator/bc/BcPGPKeyPair.java
deleted file mode 100644
index 6e182077e..000000000
--- a/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/operator/bc/BcPGPKeyPair.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.spongycastle.openpgp.operator.bc;
-
-import java.util.Date;
-
-import org.spongycastle.crypto.AsymmetricCipherKeyPair;
-import org.spongycastle.crypto.params.AsymmetricKeyParameter;
-import org.spongycastle.openpgp.PGPException;
-import org.spongycastle.openpgp.PGPKeyPair;
-import org.spongycastle.openpgp.PGPPrivateKey;
-import org.spongycastle.openpgp.PGPPublicKey;
-
-public class BcPGPKeyPair
- extends PGPKeyPair
-{
- private static PGPPublicKey getPublicKey(int algorithm, AsymmetricKeyParameter pubKey, Date date)
- throws PGPException
- {
- return new BcPGPKeyConverter().getPGPPublicKey(algorithm, pubKey, date);
- }
-
- private static PGPPrivateKey getPrivateKey(PGPPublicKey pub, AsymmetricKeyParameter privKey)
- throws PGPException
- {
- return new BcPGPKeyConverter().getPGPPrivateKey(pub, privKey);
- }
-
- public BcPGPKeyPair(int algorithm, AsymmetricCipherKeyPair keyPair, Date date)
- throws PGPException
- {
- this.pub = getPublicKey(algorithm, (AsymmetricKeyParameter)keyPair.getPublic(), date);
- this.priv = getPrivateKey(this.pub, (AsymmetricKeyParameter)keyPair.getPrivate());
- }
-}