summaryrefslogtreecommitdiff
path: root/javax/crypto
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-10-21 20:41:28 +0000
committerMichael Koch <konqueror@gmx.de>2004-10-21 20:41:28 +0000
commitc35eb2c5c05fa4848c29cd7b15e1102678fdf9a6 (patch)
tree53ed0538fc66d616222d768580b606c1ba072467 /javax/crypto
parent33d3b6b34ef93f29e5b7c3bdae46c5610577fcf0 (diff)
downloadclasspath-c35eb2c5c05fa4848c29cd7b15e1102678fdf9a6.tar.gz
2004-10-21 Michael Koch <konqueror@gmx.de>
* javax/crypto/Cipher.java, javax/crypto/EncryptedPrivateKeyInfo.java, javax/crypto/ExemptionMechanism.java, javax/crypto/KeyAgreement.java, javax/crypto/KeyGenerator.java, javax/crypto/Mac.java, javax/crypto/SecretKeyFactory.java, javax/crypto/SecretKeyFactorySpi.java, javax/crypto/spec/SecretKeySpec.java: Import cleanup.
Diffstat (limited to 'javax/crypto')
-rw-r--r--javax/crypto/Cipher.java5
-rw-r--r--javax/crypto/EncryptedPrivateKeyInfo.java6
-rw-r--r--javax/crypto/ExemptionMechanism.java5
-rw-r--r--javax/crypto/KeyAgreement.java5
-rw-r--r--javax/crypto/KeyGenerator.java5
-rw-r--r--javax/crypto/Mac.java5
-rw-r--r--javax/crypto/SecretKeyFactory.java7
-rw-r--r--javax/crypto/SecretKeyFactorySpi.java2
-rw-r--r--javax/crypto/spec/SecretKeySpec.java1
9 files changed, 17 insertions, 24 deletions
diff --git a/javax/crypto/Cipher.java b/javax/crypto/Cipher.java
index af7f2f244..2e2d28f7f 100644
--- a/javax/crypto/Cipher.java
+++ b/javax/crypto/Cipher.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package javax.crypto;
+import gnu.java.security.Engine;
+
import java.security.AlgorithmParameters;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
@@ -50,11 +52,8 @@ import java.security.Security;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.security.spec.AlgorithmParameterSpec;
-
import java.util.StringTokenizer;
-import gnu.java.security.Engine;
-
/**
* <p>This class implements a cryptographic cipher for transforming
* data.</p>
diff --git a/javax/crypto/EncryptedPrivateKeyInfo.java b/javax/crypto/EncryptedPrivateKeyInfo.java
index b64fbd6af..2d565f118 100644
--- a/javax/crypto/EncryptedPrivateKeyInfo.java
+++ b/javax/crypto/EncryptedPrivateKeyInfo.java
@@ -44,14 +44,12 @@ import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
import java.io.IOException;
-
-import java.util.ArrayList;
-import java.util.List;
-
import java.security.AlgorithmParameters;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
+import java.util.ArrayList;
+import java.util.List;
/**
* An implementation of the <code>EncryptedPrivateKeyInfo</code> ASN.1
diff --git a/javax/crypto/ExemptionMechanism.java b/javax/crypto/ExemptionMechanism.java
index 7fa658e9e..2b2091e15 100644
--- a/javax/crypto/ExemptionMechanism.java
+++ b/javax/crypto/ExemptionMechanism.java
@@ -38,8 +38,9 @@ exception statement from your version. */
package javax.crypto;
-import java.lang.reflect.InvocationTargetException;
+import gnu.java.security.Engine;
+import java.lang.reflect.InvocationTargetException;
import java.security.AlgorithmParameters;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
@@ -50,8 +51,6 @@ import java.security.Provider;
import java.security.Security;
import java.security.spec.AlgorithmParameterSpec;
-import gnu.java.security.Engine;
-
/**
* An exemption mechanism, which will conditionally allow cryptography
* where it is not normally allowed, implements things such as <i>key
diff --git a/javax/crypto/KeyAgreement.java b/javax/crypto/KeyAgreement.java
index 6f6ed34e0..884e0f918 100644
--- a/javax/crypto/KeyAgreement.java
+++ b/javax/crypto/KeyAgreement.java
@@ -38,8 +38,9 @@ exception statement from your version. */
package javax.crypto;
-import java.lang.reflect.InvocationTargetException;
+import gnu.java.security.Engine;
+import java.lang.reflect.InvocationTargetException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
@@ -50,8 +51,6 @@ import java.security.SecureRandom;
import java.security.Security;
import java.security.spec.AlgorithmParameterSpec;
-import gnu.java.security.Engine;
-
/**
* Key agreement is a method in which two or more parties may agree on a
* secret key for symmetric cryptography or message authentication
diff --git a/javax/crypto/KeyGenerator.java b/javax/crypto/KeyGenerator.java
index 35753b036..3deda21fe 100644
--- a/javax/crypto/KeyGenerator.java
+++ b/javax/crypto/KeyGenerator.java
@@ -38,8 +38,9 @@ exception statement from your version. */
package javax.crypto;
-import java.lang.reflect.InvocationTargetException;
+import gnu.java.security.Engine;
+import java.lang.reflect.InvocationTargetException;
import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
@@ -48,8 +49,6 @@ import java.security.SecureRandom;
import java.security.Security;
import java.security.spec.AlgorithmParameterSpec;
-import gnu.java.security.Engine;
-
/**
* A generic producer of keys for symmetric cryptography. The keys
* returned may be simple wrappers around byte arrays, or, if the
diff --git a/javax/crypto/Mac.java b/javax/crypto/Mac.java
index 55f5be61b..301ec327e 100644
--- a/javax/crypto/Mac.java
+++ b/javax/crypto/Mac.java
@@ -38,8 +38,9 @@ exception statement from your version. */
package javax.crypto;
-import java.lang.reflect.InvocationTargetException;
+import gnu.java.security.Engine;
+import java.lang.reflect.InvocationTargetException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
@@ -49,8 +50,6 @@ import java.security.Provider;
import java.security.Security;
import java.security.spec.AlgorithmParameterSpec;
-import gnu.java.security.Engine;
-
/**
* This class implements a "message authentication code" (MAC), a method
* to ensure the integrity of data transmitted between two parties who
diff --git a/javax/crypto/SecretKeyFactory.java b/javax/crypto/SecretKeyFactory.java
index d12e1b582..d543c57c7 100644
--- a/javax/crypto/SecretKeyFactory.java
+++ b/javax/crypto/SecretKeyFactory.java
@@ -38,17 +38,16 @@ exception statement from your version. */
package javax.crypto;
-import java.lang.reflect.InvocationTargetException;
+import gnu.java.security.Engine;
+import java.lang.reflect.InvocationTargetException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.Provider;
import java.security.Security;
-import java.security.spec.KeySpec;
import java.security.spec.InvalidKeySpecException;
-
-import gnu.java.security.Engine;
+import java.security.spec.KeySpec;
/**
* A secret key factory translates {@link SecretKey} objects to and from
diff --git a/javax/crypto/SecretKeyFactorySpi.java b/javax/crypto/SecretKeyFactorySpi.java
index 7b4763dff..41c815270 100644
--- a/javax/crypto/SecretKeyFactorySpi.java
+++ b/javax/crypto/SecretKeyFactorySpi.java
@@ -39,8 +39,8 @@ exception statement from your version. */
package javax.crypto;
import java.security.InvalidKeyException;
-import java.security.spec.KeySpec;
import java.security.spec.InvalidKeySpecException;
+import java.security.spec.KeySpec;
/**
* The <i>Service Provider Interface</i> (<b>SPI</b>) for the {@link
diff --git a/javax/crypto/spec/SecretKeySpec.java b/javax/crypto/spec/SecretKeySpec.java
index 6d9f4b8fe..63c696840 100644
--- a/javax/crypto/spec/SecretKeySpec.java
+++ b/javax/crypto/spec/SecretKeySpec.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package javax.crypto.spec;
import java.security.spec.KeySpec;
+
import javax.crypto.SecretKey;
/**