All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.burgstaller.okhttp.digest.CachingAuthenticator.kt Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
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