Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for extensions (0.16 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

            ?.value
        }
    
      val subjectAlternativeNames: Extension?
        get() {
          return tbsCertificate.extensions.firstOrNull {
            it.id == ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
          }
        }
    
      val basicConstraints: Extension
        get() {
          return tbsCertificate.extensions.first {
            it.id == ObjectIdentifiers.BASIC_CONSTRAINTS
          }
        }
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/android/BouncyCastleSocketAdapter.kt

          null, "" -> null
          else -> protocol
        }
      }
    
      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<Protocol>,
      ) {
        // No TLS extensions if the socket class is custom.
        if (matchesSocket(sslSocket)) {
          val bcSocket = sslSocket as BCSSLSocket
    
          val sslParameters = bcSocket.parameters
    
          // Enable ALPN.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

     * Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits=15
     * Sec-WebSocket-Extensions: permessage-deflate; client_no_context_takeover
     * Sec-WebSocket-Extensions: permessage-deflate; server_max_window_bits="15"
     * Sec-WebSocket-Extensions: permessage-deflate; server_max_window_bits=15
     * Sec-WebSocket-Extensions: permessage-deflate; server_no_context_takeover
     * Sec-WebSocket-Extensions: permessage-deflate; server_no_context_takeover;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

          if (e.javaClass.name != "java.lang.reflect.InaccessibleObjectException") {
            throw e
          }
    
          null
        }
      }
    
      /**
       * Configure TLS extensions on `sslSocket` for `route`.
       */
      open fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

          val extensions =
            try {
              X509TrustManagerExtensions(trustManager)
            } catch (iae: IllegalArgumentException) {
              // X509TrustManagerExtensions checks for checkServerTrusted(X509Certificate[], String, String)
              null
            }
    
          return when {
            extensions != null -> AndroidCertificateChainCleaner(trustManager, extensions)
            else -> null
          }
        }
    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)
  6. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

      @Test fun subjectAltUsesLocalDomainAndIp() {
        // cat cert.cnf
        // [req]
        // distinguished_name=distinguished_name
        // req_extensions=req_extensions
        // x509_extensions=x509_extensions
        // [distinguished_name]
        // [req_extensions]
        // [x509_extensions]
        // subjectAltName=DNS:localhost.localdomain,DNS:localhost,IP:127.0.0.1
        //
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

            bytesRemainingInChunk = source.readHexadecimalUnsignedLong()
            val extensions = source.readUtf8LineStrict().trim()
            if (bytesRemainingInChunk < 0L || extensions.isNotEmpty() && !extensions.startsWith(";")) {
              throw ProtocolException(
                "expected chunk size and optional extensions" +
                  " but was \"$bytesRemainingInChunk$extensions\"",
              )
            }
          } catch (e: NumberFormatException) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt

            ),
          )
      }
    
      @Test
      fun multiplePerMessageDeflateHeaders() {
        val extensions =
          WebSocketExtensions.parse(
            headersOf(
              "Sec-WebSocket-Extensions",
              "",
              "Sec-WebSocket-Extensions",
              "permessage-deflate",
            ),
          )
        assertThat(extensions)
          .isEqualTo(
            WebSocketExtensions(
              perMessageDeflate = true,
            ),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                return
              }
    
              // Apply the extensions. If they're unacceptable initiate a graceful shut down.
              // TODO(jwilson): Listeners should get onFailure() instead of onClosing() + onClosed(1010).
              val extensions = WebSocketExtensions.parse(response.headers)
              this@RealWebSocket.extensions = extensions
              if (!extensions.isValid()) {
                synchronized(this@RealWebSocket) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

          return Validity(
            notBefore = notBefore,
            notAfter = notAfter,
          )
        }
    
        private fun extensions(): MutableList<Extension> {
          val result = mutableListOf<Extension>()
    
          if (maxIntermediateCas != -1) {
            result +=
              Extension(
                id = BASIC_CONSTRAINTS,
                critical = true,
                value =
                  BasicConstraints(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
Back to top