Author: arunpatidar
Date: Mon Jul 4 15:44:12 2016
New Revision: 1751322
URL:
http://svn.apache.org/viewvc?rev=1751322&view=revLog:
Applied patch from jira issue - OFBIZ-7541 - Enforce noninstantiability to KeyStoreUtil class. Thanks Rishi Solanki and Pratik Kulshreshth for your contribution.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/KeyStoreUtil.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/KeyStoreUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/KeyStoreUtil.java?rev=1751322&r1=1751321&r2=1751322&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/KeyStoreUtil.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/KeyStoreUtil.java Mon Jul 4 15:44:12 2016
@@ -57,10 +57,12 @@ import org.ofbiz.base.config.GenericConf
* KeyStoreUtil - Utilities for getting KeyManagers and TrustManagers
*
*/
-public class KeyStoreUtil {
+public final class KeyStoreUtil {
public static final String module = KeyStoreUtil.class.getName();
+ private KeyStoreUtil () {}
+
public static void storeComponentKeyStore(String componentName, String keyStoreName, KeyStore store) throws IOException, GenericConfigException, NoSuchAlgorithmException, CertificateException, KeyStoreException {
ComponentConfig.KeystoreInfo ks = ComponentConfig.getKeystoreInfo(componentName, keyStoreName);
File file = FileUtil.getFile(ks.createResourceHandler().getFullLocation());