[jboss-cvs] JBossAS SVN: r63091 - trunk/testsuite/src/main/org/jboss/test/security/service.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 15 23:46:16 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-05-15 23:46:16 -0400 (Tue, 15 May 2007)
New Revision: 63091
Modified:
trunk/testsuite/src/main/org/jboss/test/security/service/PropertiesVerifierStore.java
Log:
use crypto util
Modified: trunk/testsuite/src/main/org/jboss/test/security/service/PropertiesVerifierStore.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/security/service/PropertiesVerifierStore.java 2007-05-16 03:45:47 UTC (rev 63090)
+++ trunk/testsuite/src/main/org/jboss/test/security/service/PropertiesVerifierStore.java 2007-05-16 03:46:16 UTC (rev 63091)
@@ -34,7 +34,7 @@
import javax.naming.Name;
import org.jboss.naming.NonSerializableFactory;
-import org.jboss.security.Util;
+import org.jboss.crypto.CryptoUtil;
import org.jboss.security.srp.SRPConf;
import org.jboss.security.srp.SRPVerifierStore;
import org.jboss.security.srp.SRPVerifierStore.VerifierInfo;
@@ -75,7 +75,7 @@
protected void startService() throws Exception
{
// Make sure the security utility class is initialized
- Util.init();
+ CryptoUtil.init();
// Find the users.properties file
ClassLoader loader = Thread.currentThread().getContextClassLoader();
@@ -150,7 +150,7 @@
VerifierInfo info = new VerifierInfo();
info.username = username;
// Create a random salt
- long r = Util.nextLong();
+ long r = CryptoUtil.nextLong();
String rs = Long.toHexString(r);
info.salt = rs.getBytes();
BigInteger g = SRPConf.getDefaultParams().g();
@@ -158,7 +158,7 @@
info.cipherAlgorithm = cipherAlgorithm;
info.hashAlgorithm = hashAlgorithm;
- info.verifier = Util.calculateVerifier(username, password, info.salt, N, g);
+ info.verifier = CryptoUtil.calculateVerifier(username, password, info.salt, N, g);
info.g = g.toByteArray();
info.N = N.toByteArray();
storeMap.put(username, info);
More information about the jboss-cvs-commits
mailing list