users@glassfish.java.net

Re: How to get login principle after container-managed login

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Thu, 22 Sep 2011 12:34:25 -0400

On 9/19/11 5:27 PM, forums_at_java.net wrote:
>
> I should have been more specific: how to get the current request principl
> inside jersey resource class?

In that case I think you need this:

http://download.oracle.com/javaee/6/api/javax/ws/rs/core/SecurityContext.html

There's an example here:

http://wikis.sun.com/display/Jersey/Overview+of+JAX-RS+1.0+Features

Cheers,
Bobby