users@jersey.java.net

Jersey Client and Basic Authentication

From: Mike Jones <mike.a.jones_at_gmail.com>
Date: Wed, 20 Aug 2008 11:45:53 +0100

Hello

I'm using Jersey with Spring security and I'm in the process of
creating some tests that use embedded Jetty and the Jersey client. I
need to perform some basic authentication with the client - do I need
to encode the credentials in Base64 myself and add them to the headers
in the jersey client? Am I missing some nice (and probably obvious)
helper methods for this?

Cheers
Mike