User: jules_gosnell
Date: 02/02/18 16:14:02
Modified: jetty/src/main/org/jboss/jetty/security JBossUserRealm.java
Log:
sort logging
Revision Changes Path
1.3 +18 -9
contrib/jetty/src/main/org/jboss/jetty/security/JBossUserRealm.java
Index: JBossUserRealm.java
===================================================================
RCS file:
/cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/security/JBossUserRealm.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JBossUserRealm.java 14 Jan 2002 00:42:26 -0000 1.2
+++ JBossUserRealm.java 19 Feb 2002 00:14:02 -0000 1.3
@@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
-// $Id: JBossUserRealm.java,v 1.2 2002/01/14 00:42:26 jules_gosnell Exp $
+// $Id: JBossUserRealm.java,v 1.3 2002/02/19 00:14:02 jules_gosnell Exp $
package org.jboss.jetty.security;
@@ -29,7 +29,7 @@
/** An implementation of UserRealm that integrates with the JBossSX
* security manager associted with the web application.
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
// TODO
@@ -44,7 +44,9 @@
JBossUserPrincipal(String name)
{
super(name);
- _log.info("created JBossUserRealm::JBossUserPrincipal: "+name);
+
+ if (_log.isDebugEnabled())
+ _log.debug("created JBossUserRealm::JBossUserPrincipal: "+name);
}
protected boolean
@@ -57,10 +59,12 @@
password="";
char[] passwordChars = password.toCharArray();
- _log.info("authenticating: Name:"+userName+" Password:"+password);
+ if (_log.isDebugEnabled())
+ _log.debug("authenticating: Name:"+userName+" Password:****"/*+password*/);
if(_authMgr!=null &&_authMgr.isValid(this, passwordChars))
{
- _log.info("JBossUserPrincipal: "+userName+" is authenticated");
+ if (_log.isDebugEnabled())
+ _log.debug("authenticated: "+userName);
// work around the fact that we are not serialisable - thanks Anatoly
// SecurityAssociation.setPrincipal(this);
@@ -71,7 +75,7 @@
}
else
{
- _log.warn("JBossUserPrincipal: "+userName+" is NOT authenticated");
+ _log.warn("authentication failure: "+userName);
}
return authenticated;
@@ -146,12 +150,15 @@
Set requiredRoles = Collections.singleton(new SimplePrincipal(role));
if(_realmMapping!=null && _realmMapping.doesUserHaveRole(this, requiredRoles))
{
- _log.info("JBossUserPrincipal: "+userName+" is in Role: "+role);
+ if (_log.isDebugEnabled())
+ _log.debug("JBossUserPrincipal: "+userName+" is in Role: "+role);
+
isUserInRole = true;
}
else
{
- _log.warn("JBossUserPrincipal: "+userName+" is NOT in Role: "+role);
+ if (_log.isDebugEnabled())
+ _log.debug("JBossUserPrincipal: "+userName+" is NOT in Role: "+role);
}
return isUserInRole;
@@ -210,7 +217,9 @@
public UserPrincipal
getUser(String userName)
{
- _log.info("JBossUserPrincipal: "+userName);
+ if (_log.isDebugEnabled())
+ _log.debug("JBossUserPrincipal: "+userName);
+
return ensureUser(userName);
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development