You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/04/12 20:11:47 UTC

svn commit: r528069 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java

Author: jaz
Date: Thu Apr 12 11:11:46 2007
New Revision: 528069

URL: http://svn.apache.org/viewvc?view=rev&rev=528069
Log:
added missing SecureRandom to SSL Factory

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java?view=diff&rev=528069&r1=528068&r2=528069
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java Thu Apr 12 11:11:46 2007
@@ -21,6 +21,7 @@
 import java.io.IOException;
 import java.security.GeneralSecurityException;
 import java.security.KeyStore;
+import java.security.SecureRandom;
 
 import javax.net.ssl.*;
 
@@ -34,7 +35,7 @@
     private static boolean loadedProps = false;
 
     static {
-        SSLUtil. loadJsseProperties();
+        SSLUtil.loadJsseProperties();
     }
 
     public static KeyManager[] getKeyManagers(KeyStore ks, String password, String alias) throws GeneralSecurityException {
@@ -63,7 +64,7 @@
         KeyManager[] km = getKeyManagers(ks, password, alias);
 
         SSLContext context = SSLContext.getInstance("SSL");
-        context.init(km, tm, null);
+        context.init(km, tm, new SecureRandom());
         return context.getSocketFactory();
     }