From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Feb 2010 12:09:45 PST
While I'm not sure if it's possible to get the httpServletRequest object back, it does appear to be possible to get a variety of other pieces of information back.
[code]
@Context
private SecurityContext ctx;
@GET
@Produces("text/plain")
public String getUserPrincipal() {
return ctx.getUserPrincipal.getName();
}
[/code]