I am working on a jersey rest client and I am building my client and my authentication issues with this:
ClientConfig config = new DefaultClientConfig();
Client client = Client.create(config);
client.addFilter(new HTTPBasicAuthFilter("user", "password"));
So why does everyone, including the jersey documentation, refer to Apache HttpClient to deal with security, when it is working like I wrote? It doesnt seem to use the Apache Framework. So why use it?
Right, this works with any Jersey client. Did anyone indicate it only works with apache? Where?