Until 3.2.6 - this code would return a list of roles for a Principal:
| String domain = "somedomain"; | MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0); | String jaasMgrName = "jboss.security:service=JaasSecurityManager"; | ObjectName jaasMgr = new ObjectName(jaasMgrName); | Object[] params = {domain, principal}; | String[] signature = {"java.lang.String", Principal.class.getName()}; | Set roles = (Set) server.invoke(jaasMgr, "getUserRoles", params, signature); | In 3.2.6 - a 3rd parameter as added to getUserRoles - Object credential. Given a principal, how can I get a credential that will satisfy this method? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865272#3865272 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865272 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user