
com.burgstaller.okhttp.digest.CachingAuthenticator.kt 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
OkHttp Digest Authentication
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.
*/
interface CachingAuthenticator : 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
*/
fun authenticateWithState(route: Route?, request: Request): Request?
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy