From: Anders <aen...@gn...> - 2003-10-31 14:13:46
|
On Fri, Oct 31, 2003 at 01:20:35PM +0000, Adrian Brock wrote: > The web-console will be using the Principal property editor >=20 [snip] > SimplePrincipal principal =3D new SimplePrincipal(text); Great - thanks a lot. I'll give that a try (sigh - more project build dependencies ;) //Anders > On Fri, 2003-10-31 at 07:47, Anders Engstr=F6m wrote: > > Hi. > >=20 > > I'm trying to flush the jaas authorization cache in our application (to > > pick up changes to roles etc.). > >=20 > > I've managed to flush the *entire* cache > > (flushAuthenticationCache(java.lang.String) and this works fine but I'd > > like to use the flush-method that takes a principal as well. > >=20 > > My code looks something like: > >=20 > > Object[] params =3D new Object[]{jaasDomainName, simplePrincipal}; > > String[] signature =3D new String[]{"java.lang.String", > > "java.security.Principal"}; > > mbeanServer.invoke(jaasObjectName, "flushAuthenticationCache", params, > > signature); > >=20 > > The simplePrincipal object my own implementation of the Principal > > interface (just takes the username in the constructor and returns it on > > getName()). > >=20 > > This code executes without any error messages, but the cache is not > > flushed. If I execute the same(?) method in the web-console the cache > > *is* flushed for the named user. > >=20 > > My guess is that the CachePolicy can't find my principal and that in > > order to get my code working I must get my hands on the actual Principal > > object used by JBoss JAAS. > >=20 > > If this is the case, then how do I do it? If not, what am I doing wrong? > > ;) > >=20 > > Best Regards //Anders > --=20 > xxxxxxxxxxxxxxxxxxxxxxxx=20 > Adrian Brock > Director of Support > Back Office > JBoss Group, LLC=20 > xxxxxxxxxxxxxxxxxxxxxxxx=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user >=20 --=20 =2E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =2E Anders Engstr=F6m aen...@gn... =2E http://www.gnejs.net PGP-Key: ED010E7F =2E [Your mind is like an umbrella. It doesn't work unless you open it.] = =20 |