Marcel Reutegger wrote:
I have to admit I'm also not a JAAS expert. But looking at the javax.security.auth.Subject javadoc I assume one has to do something like the following:
Subject alreadyAuthenticated = ... Session s = (Session) Subject.doAs(alreadyAuthenticated, new PrivilegedAction() { public Object run() { return Repository.login(); } });
just wanted to confirm that this does indeed work. thanks much!
