Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for myrealm (0.17 sec)

  1. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

                "asdf\", realm=\"myrealm\", stale=\"FALSE\"",
            )
            .build()
        val challenges = headers.parseChallenges("WWW-Authenticate")
        assertThat(challenges.size).isEqualTo(1)
        assertThat(challenges[0].scheme).isEqualTo("Digest")
        assertThat(challenges[0].realm).isEqualTo("myrealm")
        val expectedAuthParams = mutableMapOf<String, String>()
        expectedAuthParams["realm"] = "myrealm"
    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)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

                "WWW-Authenticate",
                "Basic realm=\"protected area\", charset=\"UTF-8\"",
              ),
            body = "Please authenticate with UTF-8.",
          ),
        )
        server.enqueue(
          MockResponse(
            code = 401,
            headers =
              headersOf(
                "WWW-Authenticate",
                "Basic realm=\"protected area\"",
              ),
    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)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

       * auth param in the challenge at key null. Invalid headers and challenges are ignored.
       * No semantic validation is done, for example that `Basic` auth must have a `realm`
       * auth param, this is up to the caller that interprets these challenges.
       */
      fun challenges(): List<Challenge> {
        return headers.parseChallenges(
          when (code) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

      fun proxyAuthenticateOnConnect() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse(
            code = 407,
            headers = headersOf("Proxy-Authenticate", "Basic realm=\"localhost\""),
            inTunnel = true,
          ),
        )
        server.enqueue(
          MockResponse(inTunnel = true),
        )
        server.enqueue(
          MockResponse(body = "response body"),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      @Test @Disabled
      fun challenge() {
        val challenge = Challenge("", mapOf("" to ""))
        val scheme: String = challenge.scheme()
        val authParams: Map<String?, String> = challenge.authParams()
        val realm: String? = challenge.realm()
        val charset: Charset = challenge.charset()
      }
    
      @Test @Disabled
      fun cipherSuite() {
        val cipherSuite: CipherSuite = CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

        responses returned by OkHttp itself, and it was an old mistake to permit
        application code to omit a message.
    
     *  The challenge's scheme and realm are now non-null. If you are calling
        `new Challenge(scheme, realm)` you must provide non-null values. These were
        never null in challenges created by OkHttp, but could have been null in
        application code that creates challenges.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(
          MockResponse(
            code = HttpURLConnection.HTTP_UNAUTHORIZED,
            headers = headersOf("www-authenticate", "Basic realm=\"protected area\""),
            body = "Please authenticate.",
          ),
        )
        server.enqueue(
          MockResponse(body = "Successful auth!"),
        )
        val credential = basic("username", "password")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

            .url("https://server/robots.txt")
            .build()
        val response =
          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(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        var challenge = Challenge("", mapOf("" to ""))
        challenge = Challenge("", "")
        val scheme: String = challenge.scheme
        val authParams: Map<String?, String> = challenge.authParams
        val realm: String? = challenge.realm
        val charset: Charset = challenge.charset
        val utf8: Challenge = challenge.withCharset(Charsets.UTF_8)
      }
    
      @Test
      fun cipherSuite() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  10. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      @Test
      fun authenticatingTunnelProxyConnect() {
        enableTlsWithTunnel()
        server.enqueue(
          MockResponse.Builder()
            .inTunnel()
            .code(407)
            .addHeader("Proxy-Authenticate: Basic realm=\"localhost\"")
            .addHeader("Connection: close")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .inTunnel()
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
Back to top