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());