Hello, 
using JBoss 4.0.2, jsdk 1.42_06, aop 1.1.2 

in SecurityClassMetaDataLoader->bind method run-as role is being created as a 
SimplePrincipal "

     if (meta.getRunAs() != null)
  |       {
  |          advisor.getDefaultMetaData().addMetaData("security", "run-as", new 
SimplePrincipal(meta.getRunAs()), PayloadKey.TRANSIENT);
  |       }

, but in "RunAsSecurityInterceptor->getRunAsIdentity" method it's being cast to 
"RunAsIdentity" 

               RunAsIdentity identity = 
(RunAsIdentity)invocation.getMetaData("security", "run-as");


problem:       which throws casting exception, is this a bug?


sample of my jboss-service.xml


  |         <security-identity>
  |     <run-as>
  |         <role-name>MyRole</role-name>
  |     </run-as>
  |        </security-identity>
  | 
   


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911014#3911014

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911014


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to