You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sz...@apache.org on 2005/11/29 22:22:53 UTC

svn commit: r349816 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java

Author: szoerner
Date: Tue Nov 29 13:22:43 2005
New Revision: 349816

URL: http://svn.apache.org/viewcvs?rev=349816&view=rev
Log:
Modified constructor call in order to be 1.4 compliant

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java?rev=349816&r1=349815&r2=349816&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java Tue Nov 29 13:22:43 2005
@@ -281,7 +281,7 @@
         try {
             digest = MessageDigest.getInstance(algorithm);
         } catch (NoSuchAlgorithmException nsae) {
-            throw new IllegalArgumentException(nsae);
+            throw new IllegalArgumentException(nsae.getMessage());
         }
 
         // calculate hashed value of password



Re: svn commit: r349816 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java

Posted by Trustin Lee <tr...@gmail.com>.
What about this?

throw ( IllegalArgumentException ) new IllegalArgumentException().initCause(
nsae );

Trustin

2005/11/30, szoerner@apache.org <sz...@apache.org>:
>
> Author: szoerner
> Date: Tue Nov 29 13:22:43 2005
> New Revision: 349816
>
> URL: http://svn.apache.org/viewcvs?rev=349816&view=rev
> Log:
> Modified constructor call in order to be 1.4 compliant
>
> Modified:
>
>     directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java
>
> Modified:
> directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java
> URL:
> http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java?rev=349816&r1=349815&r2=349816&view=diff
>
> ==============================================================================
> ---
> directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java
> (original)
> +++
> directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java
> Tue Nov 29 13:22:43 2005
> @@ -281,7 +281,7 @@
>          try {
>              digest = MessageDigest.getInstance(algorithm);
>          } catch (NoSuchAlgorithmException nsae) {
> -            throw new IllegalArgumentException(nsae);
> +            throw new IllegalArgumentException(nsae.getMessage());
>          }
>
>          // calculate hashed value of password
>
>
>


--
what we call human nature is actually human habit
--
http://gleamynode.net/