rburgst/okhttp-digest

OkHttp3:authenticator.setCredentials wrong

Closed this issue · 2 comments

client = new OkHttpClient();
final DigestAuthenticator authenticator = new DigestAuthenticator();
authenticator.setCredentials(new Credentials("username", "pass"));

this is your code, but authenticator don't have method "setCredentials",can you help me to solve it?

Seem like you have to specify the credentials now as a parameter for the constructor of DigestAuthenticator. You can easily see that in the source code of DigestAuthenticator

you are correct. will update the docs.