Java – digest authentication with Jersey client

I've written a rest web service with Jersey server (completely rock!)

On the server side, I chose a digest authentication because I personally think basic authentication is a heresy and should be marked "deprecated" on our head

Unfortunately, I don't see any digest authentication support on the client For basic authentication, you can do the following:

client.addFilter(
    new HTTPBasicAuthFilter(
        user,password));

But I can't see the corresponding "httpdigestauthfilter" Did I miss anything?

Thanks for your help,

Raphael

Solution

I just realized it

It can communicate with digest authentication of Tomcat server I haven't tested other web servers yet

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>