activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r513669 - /activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/security/JaasCertificateAuthenticationBroker.java
Date Fri, 02 Mar 2007 09:11:57 GMT
Author: jstrachan
Date: Fri Mar  2 01:11:57 2007
New Revision: 513669

URL: http://svn.apache.org/viewvc?view=rev&rev=513669
Log:
Avoided Java 5 code

Modified:
    activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/security/JaasCertificateAuthenticationBroker.java

Modified: activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/security/JaasCertificateAuthenticationBroker.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/security/JaasCertificateAuthenticationBroker.java?view=diff&rev=513669&r1=513668&r2=513669
==============================================================================
--- activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/security/JaasCertificateAuthenticationBroker.java
(original)
+++ activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/security/JaasCertificateAuthenticationBroker.java
Fri Mar  2 01:11:57 2007
@@ -100,7 +100,10 @@
                         dnName, subject, (X509Certificate[])info.getTransportContext());
                     context.setSecurityContext(s);
                 } catch (Exception e) {
-                    throw new SecurityException("User name or password is invalid: " + e.getMessage(),
e);
+                    // Java 5 only: throw new SecurityException("User name or password is
invalid: " + e.getMessage(), e);
+                    SecurityException s = new SecurityException("User name or password is
invalid: " + e.getMessage());
+					s.initCause(e);
+					throw s;
                 }
             } finally {
                 Thread.currentThread().setContextClassLoader(original);



Mime
View raw message