Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for requireClientAuth (0.23 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

      @Test
      fun clientAuthForNeeds() {
        val client = buildClient(clientCert, clientIntermediateCa.certificate)
        val socketFactory = buildServerSslSocketFactory()
        server.useHttps(socketFactory)
        server.requireClientAuth()
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val call = client.newCall(Request.Builder().url(server.url("/")).build())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      }
    
      fun noClientAuth() {
        delegate.noClientAuth()
      }
    
      fun requestClientAuth() {
        delegate.requestClientAuth()
      }
    
      fun requireClientAuth() {
        delegate.requireClientAuth()
      }
    
      @Throws(InterruptedException::class)
      fun takeRequest(): RecordedRequest {
        return delegate.takeRequest().unwrap()
      }
    
      @Throws(InterruptedException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        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)
        var requestCount: Int = mockWebServer.requestCount
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun getServerSocketFactory ()Ljavax/net/ServerSocketFactory;
    	public final fun noClientAuth ()V
    	public final fun protocols ()Ljava/util/List;
    	public final fun requestClientAuth ()V
    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lokhttp3/mockwebserver/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. mockwebserver/api/mockwebserver3.api

    	public final fun getServerSocketFactory ()Ljavax/net/ServerSocketFactory;
    	public final fun getStarted ()Z
    	public final fun noClientAuth ()V
    	public final fun requestClientAuth ()V
    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lmockwebserver3/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * proceed normally. If the client presents an untrusted certificate or no certificate at all the
       * handshake will fail and no connection will be established.
       */
      fun requireClientAuth() {
        this.clientAuth = CLIENT_AUTH_REQUIRED
      }
    
      /**
       * Awaits the next HTTP request, removes it, and returns it. Callers should use this to verify the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        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)
        var requestCount: Int = mockWebServer.requestCount
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_3x.md

        and is only suitable for experimental use.
     *  New: MockWebServer now supports client authentication (mutual TLS). Call `requestClientAuth()`
        to permit an optional client certificate or `requireClientAuth()` to require one.
     *  New: `RecordedRequest.getHandshake()` returns the HTTPS handshake of a request sent to
        `MockWebServer`.
     *  Fix: Honor the `MockResponse` header delay in MockWebServer.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top