[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/marshal/encryption ...
Tom Elrod
tom.elrod at jboss.com
Fri Aug 18 13:49:04 EDT 2006
User: telrod
Date: 06/08/18 13:49:04
Modified: src/main/org/jboss/remoting/marshal/encryption
KeyGeneratorUtil.java
Log:
JBREM-582 - removing calls to System.out.println and printStackTrace in core remoting code.
Revision Changes Path
1.2 +88 -85 JBossRemoting/src/main/org/jboss/remoting/marshal/encryption/KeyGeneratorUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: KeyGeneratorUtil.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/marshal/encryption/KeyGeneratorUtil.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- KeyGeneratorUtil.java 16 Aug 2006 19:18:30 -0000 1.1
+++ KeyGeneratorUtil.java 18 Aug 2006 17:49:04 -0000 1.2
@@ -21,23 +21,26 @@
*/
package org.jboss.remoting.marshal.encryption;
+import org.jboss.logging.Logger;
+
+import javax.crypto.KeyGenerator;
import java.io.FileOutputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.security.Key;
-import javax.crypto.KeyGenerator;
-
-//$Id: KeyGeneratorUtil.java,v 1.1 2006/08/16 19:18:30 asaldhana Exp $
+//$Id: KeyGeneratorUtil.java,v 1.2 2006/08/18 17:49:04 telrod Exp $
/**
* Generates keys
* @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
* @since Aug 14, 2006
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class KeyGeneratorUtil
{
+ protected final static Logger log = Logger.getLogger(KeyGeneratorUtil.class);
+
public void genKeys() throws Exception
{
getKey("DES");
@@ -58,7 +61,7 @@
}
catch (Exception e)
{
- e.printStackTrace();
+ log.error(e.getMessage(), e);
}
return key;
}
More information about the jboss-cvs-commits
mailing list