Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for requestClientAuth (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * certificate at all! But if the client presents an untrusted certificate the handshake
       * will fail and no connection will be established.
       */
      public fun requestClientAuth() {
        this.clientAuth = CLIENT_AUTH_REQUESTED
      }
    
      /**
       * Configure the server to [need client auth][SSLSocket.setNeedClientAuth]. If the
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
  2. okhttp-tls/README.md

        .heldCertificate(serverCertificate)
        .build();
    MockWebServer server = new MockWebServer();
    server.useHttps(serverCertificates.sslSocketFactory(), false);
    server.requestClientAuth();
    server.enqueue(new MockResponse());
    
    // Create a client certificate and a client that uses it.
    HeldCertificate clientCertificate = new HeldCertificate.Builder()
        .commonName("ianmalcolm")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val protocols: List<Protocol> = mockWebServer.protocols
        mockWebServer.useHttps(SSLSocketFactory.getDefault() as SSLSocketFactory, false)
        mockWebServer.noClientAuth()
        mockWebServer.requestClientAuth()
        mockWebServer.requireClientAuth()
        val request: RecordedRequest = mockWebServer.takeRequest()
        val nullableRequest: RecordedRequest? = mockWebServer.takeRequest(0L, TimeUnit.SECONDS)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
Back to Top