[jboss-remoting-commits] JBoss Remoting SVN: r3531 - remoting2/branches/2.x/src/main/org/jboss/remoting/security.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Feb 27 22:11:49 EST 2008


Author: ron.sigal at jboss.com
Date: 2008-02-27 22:11:48 -0500 (Wed, 27 Feb 2008)
New Revision: 3531

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/security/SSLSocketBuilder.java
Log:
JBREM-510: SocketFactory in server mode must have keystore.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/security/SSLSocketBuilder.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/security/SSLSocketBuilder.java	2008-02-28 00:46:09 UTC (rev 3530)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/security/SSLSocketBuilder.java	2008-02-28 03:11:48 UTC (rev 3531)
@@ -1315,9 +1315,18 @@
          }
          catch (NullStoreURLException e)
          {
-            // this is allowable since would be the normal scenario
-            keyManagers = null;
-            log.debug("Could not find keystore url.  " + e.getMessage());
+            if (isSocketUseClientMode())
+            {
+               // this is allowable since would be the normal scenario
+               keyManagers = null;
+               log.debug("Could not find keystore url.  " + e.getMessage());
+            }
+            else
+            {
+               IOException ioe = new IOException("Can not find keystore url.");
+               ioe.initCause(e);
+               throw ioe;
+            }
          }
 
          try




More information about the jboss-remoting-commits mailing list