0 Replies Latest reply on Apr 26, 2013 9:09 AM by mbuamuh

    How to getAuthenticationCachePrincipals

    mbuamuh

      Hi

       

      I am trying to implement the getAuthenticationCachePrincipals method. In the earlier versions of jboss you will do something like what i have below. But in EAP6 and AS7 you don't have the instance jboss.security:service=JaasSecurityManager. What is the corresponding name in EAP6 and AS7, or how will one implement the getAuthenticationCachePrincipals in these later versions of Jboss?

       

      MBeanServer server = ...;

      String jaasMgrName = "jboss.security:service=JaasSecurityManager";

      ObjectName jaasMgr = new ObjectName(jaasMgrName);

      Object[] params = {domainName};

      String[] signature = {"java.lang.String"};

      List users = (List) server.invoke(jaasMgr, "getAuthenticationCachePrincipals",

                                        params, signature);