okhttp-urlconnection / okhttp3 / JavaNetAuthenticator

JavaNetAuthenticator

class JavaNetAuthenticator : Authenticator

Adapts Authenticator to okhttp3.Authenticator. Configure OkHttp to use Authenticator with OkHttpClient.Builder.authenticator or OkHttpClient.Builder.proxyAuthenticator.

Constructors

<init>

JavaNetAuthenticator()

Adapts Authenticator to okhttp3.Authenticator. Configure OkHttp to use Authenticator with OkHttpClient.Builder.authenticator or OkHttpClient.Builder.proxyAuthenticator.

Functions

authenticate

fun authenticate(route: Route?, response: Response): Request?