User: starksm
Date: 01/11/20 01:38:59
Modified: src/main/org/jboss/security/srp Tag: Branch_2_4
SRPService.java SRPVerifierStoreService.java
Log:
Change to the unified log4j based org.jboss.logging.Logger class.
Revision Changes Path
No revision
No revision
1.1.4.2 +6 -6 jbosssx/src/main/org/jboss/security/srp/SRPService.java
Index: SRPService.java
===================================================================
RCS file: /cvsroot/jboss/jbosssx/src/main/org/jboss/security/srp/SRPService.java,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -r1.1.4.1 -r1.1.4.2
--- SRPService.java 2001/11/09 10:19:28 1.1.4.1
+++ SRPService.java 2001/11/20 09:38:59 1.1.4.2
@@ -29,7 +29,7 @@
system described in RFC2945.
@author [EMAIL PROTECTED]
- @version $Revision: 1.1.4.1 $
+ @version $Revision: 1.1.4.2 $
*/
public class SRPService extends ServiceMBeanSupport implements SRPServiceMBean,
SRPServerListener
{
@@ -192,17 +192,17 @@
if( cachePolicy.peek(principal) == null )
{
cachePolicy.insert(principal, session);
- category.trace("Cached SRP session for username="+username);
+ log.trace("Cached SRP session for username="+username);
}
else
{
- category.debug("Ignoring SRP session due to existing session for
username="+username);
+ log.debug("Ignoring SRP session due to existing session for
username="+username);
}
}
}
catch(Exception e)
{
- category.error("Failed to update SRP cache for username="+username, e);
+ log.error("Failed to update SRP cache for username="+username, e);
}
}
@@ -228,7 +228,7 @@
Object proxy = Proxy.newProxyInstance(loader, interfaces, proxyHandler);
InitialContext ctx = new InitialContext();
ctx.rebind(serverJndiName, proxy);
- category.info("Bound SRPServerProxy at "+serverJndiName);
+ log.info("Bound SRPServerProxy at "+serverJndiName);
// The type of cache needs to be externalized...
cachePolicy = new TimedCachePolicy(cacheTimeout, true, cacheResolution);
@@ -237,7 +237,7 @@
// Bind a reference to store using NonSerializableFactory as the ObjectFactory
Name name = ctx.getNameParser("").parse(cacheJndiName);
NonSerializableFactory.rebind(name, cachePolicy);
- category.info("Bound AuthenticationCache at "+cacheJndiName);
+ log.info("Bound AuthenticationCache at "+cacheJndiName);
}
private void loadStore() throws NamingException
1.1.4.2 +5 -5
jbosssx/src/main/org/jboss/security/srp/SRPVerifierStoreService.java
Index: SRPVerifierStoreService.java
===================================================================
RCS file:
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/srp/SRPVerifierStoreService.java,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -r1.1.4.1 -r1.1.4.2
--- SRPVerifierStoreService.java 2001/11/09 10:19:28 1.1.4.1
+++ SRPVerifierStoreService.java 2001/11/20 09:38:59 1.1.4.2
@@ -29,7 +29,7 @@
@see org.jboss.security.srp.SerialObjectStore
@author [EMAIL PROTECTED]
-@version $Revision: 1.1.4.1 $
+@version $Revision: 1.1.4.2 $
*/
public class SRPVerifierStoreService extends ServiceMBeanSupport
implements SRPVerifierStoreServiceMBean
@@ -67,18 +67,18 @@
{
store.addUser(username, password);
save();
- category.debug("Added username: "+username);
+ log.debug("Added username: "+username);
}
catch(Exception e)
{
- category.warn("Failed to addUser, username="+username, e);
+ log.warn("Failed to addUser, username="+username, e);
}
}
public void delUser(String username) throws IOException
{
store.delUser(username);
- category.debug("Added username: "+username);
+ log.debug("Added username: "+username);
save();
}
// --- End SRPVerifierStoreServiceMBean interface methods
@@ -96,7 +96,7 @@
{
File storeFile = new File(fileName);
store = new SerialObjectStore(storeFile);
- category.info("Created SerialObjectStore at: "+storeFile.getAbsolutePath());
+ log.info("Created SerialObjectStore at: "+storeFile.getAbsolutePath());
// Bind a reference to store using NonSerializableFactory as the
ObjectFactory
InitialContext ctx = new InitialContext();
Name name = ctx.getNameParser("").parse(jndiName);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development