http://weblogs.java.net/blog/mhadley/archive/2008/03/authentication.html
Great !!
thanks.....................
2010/1/14 Felipe Gaścho <fgaucho_at_gmail.com>:
> exactly, do you have an example ?
>
> On Thu, Jan 14, 2010 at 6:28 PM, Moises Lejter <moilejter_at_gmail.com> wrote:
>> Don't you just want to inject a SecurityContext, then get the Principal out
>> of that?
>> Moises
>>
>> 2010/1/14 Felipe Gaścho <fgaucho_at_gmail.com>
>>>
>>> I have a method cto create an Atom entry:
>>>
>>> @POST
>>> @Consumes( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON
>>> })
>>> @Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON
>>> })
>>> @Path("category")
>>> public EntryType update(EntryType entity) {
>>> return facade.create(entity);
>>> }
>>>
>>> how do I get the logged user inside this method ? (for linking the
>>> entry to the author...)
>>>
>>>
>>> --
>>> ------------------------------------------
>>> Felipe Gaścho
>>> 10+ Java Programmer
>>> CEJUG Senior Advisor
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>
>
>
> --
> ------------------------------------------
> Felipe Gaścho
> 10+ Java Programmer
> CEJUG Senior Advisor
>
--
------------------------------------------
Felipe Gaścho
10+ Java Programmer
CEJUG Senior Advisor