users@jersey.java.net

[Jersey] Re: Authenticating a REST user with Tomcat

From: Matthew Hall <mhall_at_mhcomputing.net>
Date: Thu, 18 Jul 2013 08:18:39 -0700

You can store sessions in a hash with an expiry time, and then toss out expired requests with a Filter injected in the request path. LinkedHashMap is a good tool for tracking things which need to get cached and expired. You could also use memcache, Redis, etc.
-- 
Sent from my mobile device.
Martin O'Shea <appy74_at_dsl.pipex.com> wrote:
>Hello
>
> 
>
>I am a REST newbie and I'm in the process of setting up a web service
>with
>Jersey. I already have client and server communicating with each other
>by
>sending XML requests. And I would like the user of the client, an
>android
>app, to be authenticated by the server for a set period of time and
>then
>have to re-authenticate after that time has expired.
>
> 
>
>Can anyone suggest anything?
>
> 
>
>Thanks
>
> 
>
>Martin O'Shea.
>
> 
>
>