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/bouncycastle/openpgp/operator/bc/BcPGPKeyPair.java')
-rw-r--r--pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPGPKeyPair.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPGPKeyPair.java b/pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPGPKeyPair.java
deleted file mode 100644
index 29460894..00000000
--- a/pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPGPKeyPair.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.bouncycastle.openpgp.operator.bc;
-
-import java.util.Date;
-
-import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
-import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
-import org.bouncycastle.openpgp.PGPException;
-import org.bouncycastle.openpgp.PGPKeyPair;
-import org.bouncycastle.openpgp.PGPPrivateKey;
-import org.bouncycastle.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, keyPair.getPublic(), date);
- this.priv = getPrivateKey(this.pub, keyPair.getPrivate());
- }
-}