summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbouncy <bouncy>2012-03-19 05:00:26 +0000
committerbouncy <bouncy>2012-03-19 05:00:26 +0000
commit72c40f1940609b5c3745bd2febd814650c382f92 (patch)
tree5efbd46a5a2f0988380f9c5f6f3d52fb363355b2
parent7286e1648fbaa039c0e893da9e58228e83afd7b2 (diff)
downloadandroid_external_spongycastle-72c40f1940609b5c3745bd2febd814650c382f92.tar.gz
android_external_spongycastle-72c40f1940609b5c3745bd2febd814650c382f92.tar.bz2
android_external_spongycastle-72c40f1940609b5c3745bd2febd814650c382f92.zip
removed bogus exception
-rw-r--r--crypto/src/org/bouncycastle/asn1/eac/CertificateHolderAuthorization.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/org/bouncycastle/asn1/eac/CertificateHolderAuthorization.java b/crypto/src/org/bouncycastle/asn1/eac/CertificateHolderAuthorization.java
index 7d3577aa5..935ce63c2 100644
--- a/crypto/src/org/bouncycastle/asn1/eac/CertificateHolderAuthorization.java
+++ b/crypto/src/org/bouncycastle/asn1/eac/CertificateHolderAuthorization.java
@@ -1,7 +1,6 @@
package org.bouncycastle.asn1.eac;
import java.io.IOException;
-import java.security.InvalidParameterException;
import java.util.Hashtable;
import org.bouncycastle.asn1.ASN1EncodableVector;
@@ -70,7 +69,7 @@ public class CertificateHolderAuthorization
Integer i = (Integer)AuthorizationRole.getReverse(description);
if (i == null)
{
- throw new InvalidParameterException("Unknown value " + description);
+ throw new IllegalArgumentException("Unknown value " + description);
}
return i.intValue();