There didn't seem to have a way to make Subject available to the main RCP application currently. Is my understanding correct? What would be the best way to make that happen?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There didn't seem to have a way to make Subject available to the main RCP application currently. Is my understanding correct? What would be the best way to make that happen?
Hi,
You can get the current Subject using the following standard JAAS calls:
AccessControlContext context = AccessController.getContext();
SubjectDomainCombiner domainCombiner =
(SubjectDomainCombiner)context.getDomainCombiner();
Subject subject = domainCombiner.getSubject();
Regards,
Neil