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/jcajce/JcaPGPPrivateKey.java')
-rw-r--r--pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcaPGPPrivateKey.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcaPGPPrivateKey.java b/pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcaPGPPrivateKey.java
deleted file mode 100644
index 76161db1..00000000
--- a/pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcaPGPPrivateKey.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.bouncycastle.openpgp.operator.jcajce;
-
-import java.security.PrivateKey;
-
-import org.bouncycastle.openpgp.PGPPrivateKey;
-import org.bouncycastle.openpgp.PGPPublicKey;
-
-/**
- * A JCA PrivateKey carrier. Use this one if you're dealing with a hardware adapter.
- */
-public class JcaPGPPrivateKey
- extends PGPPrivateKey
-{
- private final PrivateKey privateKey;
-
- public JcaPGPPrivateKey(long keyID, PrivateKey privateKey)
- {
- super(keyID, null, null);
-
- this.privateKey = privateKey;
- }
-
- public JcaPGPPrivateKey(PGPPublicKey pubKey, PrivateKey privateKey)
- {
- super(pubKey.getKeyID(), pubKey.getPublicKeyPacket(), null);
-
- this.privateKey = privateKey;
- }
-
- public PrivateKey getPrivateKey()
- {
- return privateKey;
- }
-}