authorization - Retrieving the Subject executing a java.security.PrivilegedAction at runtime -


i trying retrieve subject executing privileged action under jaas framework, in order able extract principals. basically, need verify @ run-time privileged action indeed executed principal has right so.

or, put differently: possible current logincontext @ run-time kind of system property (and not creating new one)? allow extracting subject.

are sure need logincontext?

if need subject (with attached principals), can do

 subject activesubject = subject.getsubject(accesscontroller.getcontext()); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -