Matt Pavlovich created KARAF-7805:
-------------------------------------

             Summary: Add JAAS Subject to Karaf shell session
                 Key: KARAF-7805
                 URL: https://issues.apache.org/jira/browse/KARAF-7805
             Project: Karaf
          Issue Type: Improvement
            Reporter: Matt Pavlovich


JDK deprecation (for removal) of SecurityManager is going take 
AcccessController and AccessControlContext classes with it. 

We need to stick the JAAS Subject on the Karaf Shell Session to allow commands 
and other utilities the ability to get the current logged in user.

karaf/shell/console ShellUtil:
{noformat}
AccessControlContext acc = AccessController.getContext();
final Subject subject = Subject.getSubject(acc);
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to