- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for JavaNetAuthenticator (0.07 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt
/** * Adapts [Authenticator] to [okhttp3.Authenticator]. Configure OkHttp to use [Authenticator] with * [okhttp3.OkHttpClient.Builder.authenticator] or [okhttp3.OkHttpClient.Builder.proxyAuthenticator]. */ class JavaNetAuthenticator( private val defaultDns: Dns = Dns.SYSTEM, ) : okhttp3.Authenticator { @Throws(IOException::class) override fun authenticate( route: Route?, response: Response, ): Request? {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test // Most tests from URLConnectionTest class JavaNetAuthenticatorTest { private var authenticator = JavaNetAuthenticator() private val fakeDns = FakeDns() private val recordingAuthenticator = RecordingAuthenticator() private val factory = TestValueFactory() .apply { dns = fakeDns }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.newBuilder() .proxy(server.proxyAddress) .proxyAuthenticator(JavaNetAuthenticator()) .build() response = getResponse(Request("http://android.com/".toHttpUrl())) } else { client = client .newBuilder() .authenticator(JavaNetAuthenticator()) .build() response = getResponse(newRequest("/")) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
builder = builder.ecdsa256() builder = builder.rsa2048() val heldCertificate: HeldCertificate = builder.build() } @Test fun javaNetAuthenticator() { val authenticator = JavaNetAuthenticator() val response = Response.Builder().build() var request: Request? = authenticator.authenticate(factory.newRoute(), response) request = authenticator.authenticate(null, response)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0)