users@jersey.java.net

[Jersey] Jersey setSecurityContext inside a resource

From: Cristian Alvarez Planas <criscoso_at_gmail.com>
Date: Wed, 12 Jun 2013 11:35:07 +0200

Hi,

I'm using Jersey to build a server app.
I'm building the user logic and I get to a point where I think I need to do
something and I don't know how.

I know I can set the security context in RequestFilter filter function,
this is fine for user login.
However, I don't know how to set this inside a resource, for
the signup function.
I've a signup function where I create a new user, if successful how can I
set the security context to "login" it at the same time? I need to do this
or it is a silly question?

Thanks!

Cristian Alvarez