Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Basic (0.19 sec)

  1. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  2. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  3. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/ObjectIdentifiers.kt

      const val RSA_ENCRYPTION = "1.2.840.113549.1.1.1"
      const val SHA256_WITH_RSA_ENCRYPTION = "1.2.840.113549.1.1.11"
      const val SUBJECT_ALTERNATIVE_NAME = "2.5.29.17"
      const val BASIC_CONSTRAINTS = "2.5.29.19"
      const val COMMON_NAME = "2.5.4.3"
      const val ORGANIZATIONAL_UNIT_NAME = "2.5.4.11"
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  7. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  8. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  9. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

          Response.Builder()
            .request(request)
            .code(401)
            .header("WWW-Authenticate", "Basic realm=\"User Visible Realm\"")
            .protocol(HTTP_2)
            .message("Unauthorized")
            .build()
        val authRequest = authenticator.authenticate(route, response)
    
        assertEquals(
          "Basic ${RecordingAuthenticator.BASE_64_CREDENTIALS}",
          authRequest!!.header("Authorization"),
        )
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top