This content has been marked as final.
Show 1 reply
-
1. Re: logout from swing client
ragavgomatam Jan 25, 2008 2:58 PM (in response to ashields)I think you can..Try this ( we did this in our swing client) ....In your swing client you must be having a handle to your callback handler, LoginContext & your implementation of PrivilgedAction
CallBackHandler cbh = new FooCallBackHandler(); LoginContext lc = new LoginContext("FooRealm", cbh); lc.login(); Subject userSubject = lc.getSubject(); // do your secured stuff here userSubject.doAsPrivileged(PrivilegedAction action, AccessControlContext acc); // done with my stuff, so i am loggin out lc.logout()