summaryrefslogtreecommitdiffstats
path: root/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/JceGenericKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'bcpkix/src/main/java/org/bouncycastle/operator/jcajce/JceGenericKey.java')
-rw-r--r--bcpkix/src/main/java/org/bouncycastle/operator/jcajce/JceGenericKey.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/JceGenericKey.java b/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/JceGenericKey.java
deleted file mode 100644
index efcbc3d..0000000
--- a/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/JceGenericKey.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.bouncycastle.operator.jcajce;
-
-import java.security.Key;
-
-import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
-import org.bouncycastle.operator.GenericKey;
-
-public class JceGenericKey
- extends GenericKey
-{
- /**
- * Attempt to simplify the key representation if possible.
- *
- * @param key a provider based key
- * @return the byte encoding if one exists, key object otherwise.
- */
- private static Object getRepresentation(Key key)
- {
- byte[] keyBytes = key.getEncoded();
-
- if (keyBytes != null)
- {
- return keyBytes;
- }
-
- return key;
- }
-
- public JceGenericKey(AlgorithmIdentifier algorithmIdentifier, Key representation)
- {
- super(algorithmIdentifier, getRepresentation(representation));
- }
-}