Hello,
Here's one:
Client client = new Client();
client.addFilter(new HTTPBasicAuthFilter(user, password));
WebResource webResource = client.resource(url);
...
HIH
Nicolas G
On Fri, Jan 7, 2011 at 2:59 PM, VINCENT Matthieu (Prestataire)
<Matthieu.VINCENT_at_cpexterne.org> wrote:
> Hi everyone,
>
>
>
> I’m desperated to find an example to do a BASIC authentication with
> Jersey for a REST webservice.
>
>
>
> Can anyone help me ?
>
>
>
> Thanks a lot in advance
>
>
>
> Matt