1 Reply Latest reply on Nov 9, 2003 10:17 PM by Juha Lindfors

    revalidate authentication cache

    stephen Newbie

      Can someone give me some pointers on how to revalidate the authentication cache programatically whenever i changed the user password or roles information?

      I am using DatabaseServerLoginModule.

      Thanks
      Regards,
      Stephen

        • 1. Re: revalidate authentication cache
          Juha Lindfors Master


          InitialContext ctx = new InitialContext();
          RMIAdaptor server = ctx.lookup("jmx/rmi/RMIAdaptor");
          ObjectName oname = new ObjectName("jboss.security:service=JaasSecurityManager");
          
          server.invoke(oname, "flushAuthenticationCache", new Object[] { "security-domain-name-here" }, String[] { String.class.getName() });
          


          or something close to that.

          -- Juha