Differences
This shows you the differences between two versions of the page.
jersey_basic_auth [2014/02/26 10:03] |
jersey_basic_auth [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Jersey Client with Basic Auth ====== | ||
+ | To add Basic Authentication to a web service call using the Jersey Client library a '' | ||
+ | <sxh java> | ||
+ | WebResource service = Client.create().resource(url); | ||
+ | HTTPBasicAuthFilter filter = new HTTPBasicAuthFilter(username, | ||
+ | service.addFilter(filter); | ||
+ | </ | ||
+ | |||
+ | {{tag> |