[jboss-cvs] JBossAS SVN: r74858 - trunk/server/src/main/org/jboss/ejb/plugins.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 19 16:32:27 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-06-19 16:32:27 -0400 (Thu, 19 Jun 2008)
New Revision: 74858

Modified:
   trunk/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
Log:
add the ejb method to the exception msg

Modified: trunk/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java	2008-06-19 20:31:41 UTC (rev 74857)
+++ trunk/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java	2008-06-19 20:32:27 UTC (rev 74858)
@@ -299,6 +299,7 @@
   {
      Principal principal = mi.getPrincipal();
      Object credential = mi.getCredential();
+     
      boolean trace = log.isTraceEnabled();
      
      // If there is not a security manager then there is no authentication required
@@ -384,7 +385,8 @@
       
      String msg = "Denied: caller with subject=" + caller 
                         + " and security context post-mapping roles=" + 
-                        currentSC.getUtil().getRoles() ;
+                        currentSC.getUtil().getRoles() +
+                        ": ejbMethod="+ejbMethod;
      if(!isAuthorized)
         throw new SecurityException(msg); 
   } 
@@ -405,4 +407,4 @@
      } 
      return false; 
   } 
-}
\ No newline at end of file
+}




More information about the jboss-cvs-commits mailing list