Based on the fact that Jersey is not tied to a specific container (servlet or otherwise), is there any way to get a UserPrincipal? I have used declarative security at the application level to restrict access to my Jersey web app and would like to check if a user belongs to a role at the method level in a resource. I have scanned the list but not found a concrete answer.
Thanks in advance!