- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for authentication (0.2 sec)
-
okhttp/src/main/kotlin/okhttp3/Authenticator.kt
* .build(); * ``` * * The proxy authenticator may implement preemptive authentication, reactive authentication, or * both. * * Applications may configure OkHttp with an authenticator for origin servers, or proxy servers, * or both. * * ## Authentication Retries * * If your authentication may be flaky and requires retries you should apply some policy
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/RecordingAuthenticator.kt
* limitations under the License. */ package okhttp3.internal import java.net.Authenticator import java.net.PasswordAuthentication class RecordingAuthenticator( private val authentication: PasswordAuthentication? = PasswordAuthentication( "username", "password".toCharArray(), ), ) : Authenticator() { val calls = mutableListOf<String>()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.4K bytes - Viewed (0) -
docs/features/events.md
A single HTTP call may require follow-up requests to be made to handle authentication challenges, redirects, and HTTP-layer timeouts. In such cases multiple connections, requests, and responses may be attempted. Follow-ups are another reason a single call may trigger multiple events of the same type.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 7.7K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
} } ``` * New: `MediaType.parameter()` gets a parameter like `boundary` from a media type like `multipart/mixed; boundary="abc"`. * New: `Authenticator.JAVA_NET_AUTHENTICATOR` forwards authentication requests to `java.net.Authenticator`. This obsoletes `JavaNetAuthenticator` in the `okhttp-urlconnection` module. * New: `CertificatePinner` now offers an API for inspecting the configured pins.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt
*/ package okhttp3.recipes.kt import java.io.IOException import okhttp3.Authenticator import okhttp3.Credentials import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.Response import okhttp3.Route class Authenticate { private val client = OkHttpClient.Builder() .authenticator( object : Authenticator { @Throws(IOException::class) override fun authenticate(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
MockResponse(body = "c"), ) val authenticator = RecordingOkAuthenticator( basic("jesse", "peanutbutter"), "Basic", ) client = client.newBuilder() .authenticator(authenticator) .build() assertContent("c", getResponse(newRequest("/a"))) val challengeResponse = authenticator.responses[0]
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp-urlconnection/api/okhttp-urlconnection.api
public final class okhttp3/JavaNetAuthenticator : okhttp3/Authenticator { public fun <init> ()V public fun authenticate (Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request; } public final class okhttp3/JavaNetCookieJar : okhttp3/CookieJar { public fun <init> (Ljava/net/CookieHandler;)V public fun loadForRequest (Lokhttp3/HttpUrl;)Ljava/util/List; public fun saveFromResponse (Lokhttp3/HttpUrl;Ljava/util/List;)V
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Feb 26 19:17:33 GMT 2022 - 423 bytes - Viewed (0) -
okhttp-tls/README.md
.build(); OkHttpClient client = new OkHttpClient.Builder() .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager()) .build(); ``` Client Authentication --------------------- The above scenario is representative of most TLS set ups: the client uses certificates to validate the identity of a server. The converse is also possible. Here we create a server that authenticates
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 9.1K bytes - Viewed (1) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
*/ fun useHttps(sslSocketFactory: SSLSocketFactory) { this.sslSocketFactory = sslSocketFactory } /** * Configure the server to not perform SSL authentication of the client. This leaves * authentication to another layer such as in an HTTP cookie or header. This is the default and * most common configuration. */ fun noClientAuth() { this.clientAuth = CLIENT_AUTH_NONE }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Challenge.kt
import okhttp3.internal.commonToString /** * An [RFC 7235][rfc_7235] challenge. * * [rfc_7235]: https://tools.ietf.org/html/rfc7235 */ class Challenge( /** Returns the authentication scheme, like `Basic`. */ @get:JvmName("scheme") val scheme: String, authParams: Map<String?, String>, ) { /** * Returns the auth params, including [realm] and [charset] if present, but as
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.5K bytes - Viewed (0)