User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

jersey_basic_auth [2014/02/26 09:03] (current)
mihael created
Line 1: Line 1:
 +====== Jersey Client with Basic Auth ======
 +To add Basic Authentication to a web service call using the Jersey Client library a ''​HTTPBasicAuthFilter''​ instance need to be added to the ''​WebResource''​.
 +<sxh java>
 +WebResource service = Client.create().resource(url);​
 +HTTPBasicAuthFilter filter = new HTTPBasicAuthFilter(username,​ password);
 +{{tag>​devel java}}
jersey_basic_auth.txt ยท Last modified: 2014/02/26 09:03 by mihael