summaryrefslogtreecommitdiffstats
path: root/luni/src/main/java/javax/crypto/KeyAgreement.java
diff options
context:
space:
mode:
Diffstat (limited to 'luni/src/main/java/javax/crypto/KeyAgreement.java')
-rw-r--r--luni/src/main/java/javax/crypto/KeyAgreement.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/luni/src/main/java/javax/crypto/KeyAgreement.java b/luni/src/main/java/javax/crypto/KeyAgreement.java
index ee561a9..ac3d56c 100644
--- a/luni/src/main/java/javax/crypto/KeyAgreement.java
+++ b/luni/src/main/java/javax/crypto/KeyAgreement.java
@@ -38,7 +38,7 @@ import org.apache.harmony.security.fortress.Engine;
public class KeyAgreement {
// Used to access common engine functionality
- private static final Engine engine = new Engine("KeyAgreement");
+ private static final Engine engine = new Engine("KeyAgreement");
// Store SecureRandom
private static final SecureRandom rndm = new SecureRandom();
@@ -101,7 +101,7 @@ public class KeyAgreement {
public static final KeyAgreement getInstance(String algorithm)
throws NoSuchAlgorithmException {
if (algorithm == null) {
- throw new NullPointerException(Messages.getString("crypto.02"));
+ throw new NullPointerException(Messages.getString("crypto.02"));
}
synchronized (engine) {
engine.getInstance(algorithm, null);
@@ -133,7 +133,7 @@ public class KeyAgreement {
String provider) throws NoSuchAlgorithmException,
NoSuchProviderException {
if ((provider == null) || (provider.length() == 0)) {
- throw new IllegalArgumentException(Messages.getString("crypto.03"));
+ throw new IllegalArgumentException(Messages.getString("crypto.03"));
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
@@ -163,10 +163,10 @@ public class KeyAgreement {
public static final KeyAgreement getInstance(String algorithm,
Provider provider) throws NoSuchAlgorithmException {
if (provider == null) {
- throw new IllegalArgumentException(Messages.getString("crypto.04"));
+ throw new IllegalArgumentException(Messages.getString("crypto.04"));
}
if (algorithm == null) {
- throw new NullPointerException(Messages.getString("crypto.02"));
+ throw new NullPointerException(Messages.getString("crypto.02"));
}
synchronized (engine) {
engine.getInstance(algorithm, provider, null);