ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1556269 - /webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/CryptoFactory.java
Date Tue, 07 Jan 2014 16:47:31 GMT
Author: coheigea
Date: Tue Jan  7 16:47:31 2014
New Revision: 1556269

URL: http://svn.apache.org/r1556269
Log:
Some minor bug fixing

Modified:
    webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/CryptoFactory.java

Modified: webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/CryptoFactory.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/CryptoFactory.java?rev=1556269&r1=1556268&r2=1556269&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/CryptoFactory.java
(original)
+++ webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/CryptoFactory.java
Tue Jan  7 16:47:31 2014
@@ -34,6 +34,10 @@ import org.apache.wss4j.common.util.Load
 public abstract class CryptoFactory {
     private static final org.slf4j.Logger LOG = 
         org.slf4j.LoggerFactory.getLogger(CryptoFactory.class);
+    
+    static {
+        WSProviderConfig.init();
+    }
 
     /**
      * getInstance
@@ -126,7 +130,8 @@ public abstract class CryptoFactory {
                     LOG.debug("Unable to instantiate Merlin", e);
                 }
                 throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE,
-                                              "empty", e, cryptoClass + " cannot create instance");
+                                              "empty", e, "Cannot create Crypto class "
+                                              + cryptoClassName);
             }
         } else {
             try {



Mime
View raw message