I use JAXRSClientFactory.create method to create proxy like this:
IMyService myService
= JAXRSClientFactory.create("http://myserviceurl/", IMyService.class, "login1", "pwd", null);
and this code work ok.
After that I need to use this service with another credentials and I try to create same service with another credentials like this:
IMyService myNewService
= JAXRSClientFactory.create("http://myserviceurl/", IMyService.class, "login2", "pwd", null);
this code work, but work with wrong credentials (with credentials from first service). I didn't found any way to change it (reset, or clear, or something like this).
And one more detail, this issue only with digest authorization. With basic it works well.
Could anybody help me with this issue.
Thanks.