- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for Basic (0.15 sec)
-
okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt
.add("WWW-Authenticate", "Basic realm=myotherrealm") .build() assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly( Challenge("Basic", mapOf("realm" to "myrealm")), Challenge("Basic", mapOf("realm" to "myotherrealm")), ) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
MockResponse( code = 401, headers = headersOf("WWW-Authenticate", "Basic realm=\"protected area\""), ), ) server.enqueue( MockResponse(body = "c"), ) val authenticator = RecordingOkAuthenticator( basic("jesse", "peanutbutter"), "Basic", ) client = client.newBuilder() .authenticator(authenticator)
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/src/main/kotlin/okhttp3/internal/idn/Punycode.kt
} result.write(PREFIX) val input = string.codePoints(pos, limit) // Copy all the basic code points to the output. var b = 0 for (codePoint in input) { if (codePoint < INITIAL_N) { result.writeByte(codePoint) b++ } } // Copy a delimiter if any basic code points were emitted. if (b > 0) result.writeByte('-'.code) var n = INITIAL_N
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 03 03:04:50 GMT 2024 - 8.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Authenticator.kt
* * ```java * if (response.request().header("Authorization") != null) { * return null; // Give up, we've already failed to authenticate. * } * * String credential = Credentials.basic(...) * return response.request().newBuilder() * .header("Authorization", credential) * .build(); * ``` * * When reactive authentication is requested by a proxy server, the response code is 407 and the
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-tls/src/main/kotlin/okhttp3/tls/internal/der/ObjectIdentifiers.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 07 16:05:34 GMT 2024 - 1.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt
} println("Authenticating for response: $response") println("Challenges: ${response.challenges()}") val credential = Credentials.basic("jesse", "password1") return response.request.newBuilder() .header("Authorization", credential) .build() } }, ) .build() fun run() {
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-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
it.id == ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME } } val basicConstraints: Extension get() { return tbsCertificate.extensions.first { it.id == ObjectIdentifiers.BASIC_CONSTRAINTS } } /** Returns true if the certificate was signed by [issuer]. */ @Throws(SignatureException::class) fun checkSignature(issuer: PublicKey): Boolean {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(CertificateAdapters.generalName.toDer(generalNameDnsName to "example.com")) .isEqualTo(bytes) } @Test fun `extension with type hint for basic constraints`() { val extension = Extension( BASIC_CONSTRAINTS, false, BasicConstraints(true, 4), ) val bytes = "300f0603551d13040830060101ff020104".decodeHex()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 31.7K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* Logs request and response lines. * * Example: * ``` * --> POST /greeting http/1.1 (3-byte body) * * <-- 200 OK (22ms, 6-byte body) * ``` */ BASIC, /** * Logs request and response lines and their respective headers. * * Example: * ``` * --> POST /greeting http/1.1 * Host: example.com
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 11.2K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/Credentials.kt
object Credentials { /** Returns an auth credential for the Basic scheme. */ @JvmStatic @JvmOverloads fun basic( username: String, password: String, charset: Charset = ISO_8859_1, ): String { val usernameAndPassword = "$username:$password" val encoded = usernameAndPassword.encode(charset).base64() return "Basic $encoded" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.1K bytes - Viewed (0)