You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oltu.apache.org by si...@apache.org on 2010/07/11 10:06:15 UTC
svn commit: r963010 -
/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
Author: simonetripodi
Date: Sun Jul 11 08:06:15 2010
New Revision: 963010
URL: http://svn.apache.org/viewvc?rev=963010&view=rev
Log:
IAE converted to SignatureException
Modified:
incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
Modified: incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java?rev=963010&r1=963009&r2=963010&view=diff
==============================================================================
--- incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java (original)
+++ incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java Sun Jul 11 08:06:15 2010
@@ -127,10 +127,10 @@ public abstract class AbstractMethod imp
OAuthToken token,
OAuthRequest request) throws SignatureException {
if (signingKey == null) {
- throw new IllegalArgumentException("parameter 'signingKey' must not be null");
+ throw new SignatureException("parameter 'signingKey' must not be null");
}
if (request == null) {
- throw new IllegalArgumentException("parameter 'request' must not be null");
+ throw new SignatureException("parameter 'request' must not be null");
}
this.checkKey(signingKey);
@@ -158,13 +158,13 @@ public abstract class AbstractMethod imp
OAuthToken token,
OAuthRequest request) throws SignatureException {
if (signature == null) {
- throw new IllegalArgumentException("parameter 'signature' must not be null");
+ throw new SignatureException("parameter 'signature' must not be null");
}
if (verifyingKey == null) {
- throw new IllegalArgumentException("parameter 'verifyingKey' must not be null");
+ throw new SignatureException("parameter 'verifyingKey' must not be null");
}
if (request == null) {
- throw new IllegalArgumentException("parameter 'request' must not be null");
+ throw new SignatureException("parameter 'request' must not be null");
}
this.checkKey(verifyingKey);