com.burgstaller.okhttp.digest.CachingAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okhttp-digest Show documentation
Show all versions of okhttp-digest Show documentation
A digest authenticator for okhttp.
package com.burgstaller.okhttp.digest;
import okhttp3.Authenticator;
import okhttp3.Request;
import okhttp3.Route;
import java.io.IOException;
/**
* A subinterface for authenticators which support auth sessions.
*/
public interface CachingAuthenticator extends Authenticator {
/**
* Authenticate the new request using cached information already established from an earlier
* authentication.
*
* @param route the route to use
* @param request the new request to be authenticated.
* @return the modified request with updated auth headers.
* @throws IOException in case of a communication problem
*/
Request authenticateWithState(Route route, Request request) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy