User: starksm
Date: 02/04/14 20:56:55
Modified: src/main/org/jboss/resource/security
ConfiguredIdentityLoginModule.java
Log:
Change all login lifecycle method logging to trace level msgs
Revision Changes Path
1.4 +8 -20
jbosscx/src/main/org/jboss/resource/security/ConfiguredIdentityLoginModule.java
Index: ConfiguredIdentityLoginModule.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/security/ConfiguredIdentityLoginModule.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ConfiguredIdentityLoginModule.java 14 Apr 2002 04:31:56 -0000 1.3
+++ ConfiguredIdentityLoginModule.java 15 Apr 2002 03:56:55 -0000 1.4
@@ -39,7 +39,7 @@
*
* @author [EMAIL PROTECTED]
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class ConfiguredIdentityLoginModule extends AbstractServerLoginModule
{
@@ -92,13 +92,13 @@
log.error("The ConnectionManager mbean: " + managedConnectionFactoryName +
" specified in a ConfiguredIdentityLoginModule could not be found. ConnectionFactory
will be unusable!");
throw new IllegalArgumentException("Managed Connection Factory not found:
" + managedConnectionFactoryName);
} // end of try-catch
- log.info("got principal: " + principalName + ", username: " + userName + ",
password: " + password + ", mcfname: " + managedConnectionFactoryName);
+ log.trace("got principal: " + principalName + ", username: " + userName + ",
password: " + password + ", mcfname: " + managedConnectionFactoryName);
}
public boolean login() throws LoginException
{
- log.info("login called");
+ log.trace("login called");
if( super.login() == true )
return true;
@@ -115,30 +115,18 @@
protected Principal getIdentity()
{
- log.info("getIdentity called");
+ log.trace("getIdentity called");
Principal principal = new SimplePrincipal(principalName);
return principal;
}
-
+ /** This method simply returns an empty array of Groups which means that
+ no role based permissions are assigned.
+ */
protected Group[] getRoleSets() throws LoginException
{
- log.info("getRoleSets called");
+ log.trace("getRoleSets called");
return new Group[] {};
- /*
- SimpleGroup roles = new SimpleGroup("Roles");
- Group[] roleSets = {roles};
- if( roleNames != null )
- {
- StringTokenizer tokenizer = new StringTokenizer(roleNames, ",");
- while( tokenizer.hasMoreTokens() )
- {
- String roleName = tokenizer.nextToken();
- roles.addMember(new SimplePrincipal(roleName));
- }
- }
- return roleSets;
- */
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development