Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 44 for HostnameVerifier (0.15 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

    import java.text.DateFormat
    import java.text.SimpleDateFormat
    import java.util.Date
    import java.util.Locale
    import java.util.TimeZone
    import java.util.concurrent.TimeUnit
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLSession
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.Headers.Companion.headersOf
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 6K bytes
    - Click Count (0)
  2. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

          }
        val sslSocketFactory = sslContext.socketFactory
    
        val hostnameVerifier = HostnameVerifier { _, _ -> true }
    
        client =
          client
            .newBuilder()
            .sslSocketFactory(sslSocketFactory, trustManager)
            .hostnameVerifier(hostnameVerifier)
            .build()
    
        client.get("https://www.facebook.com/robots.txt")
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingHostnameVerifier.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLSession
    
    class RecordingHostnameVerifier : HostnameVerifier {
      @JvmField
      val calls: MutableList<String> = mutableListOf()
    
      @Synchronized override fun verify(
        hostname: String,
        session: SSLSession,
      ): Boolean {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 980 bytes
    - Click Count (0)
  4. docs/changelogs/upgrading_to_okhttp_4.md

     * Authenticator
     * Dispatcher.setIdleCallback(Runnable)
     * Dns
     * EventListener.Factory
     * HttpLoggingInterceptor.Logger
     * LoggingEventListener.Factory
     * OkHttpClient.Builder.hostnameVerifier(HostnameVerifier)
    
    JetBrains [is working on][kotlin_sams] SAM conversions of Kotlin interfaces. Expect it in a future
    release of the Kotlin language.
    
    
    Companion Imports
    -----------------
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val proxySelector: ProxySelector = address.proxySelector
        val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory
        val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier
        val certificatePinner: CertificatePinner? = address.certificatePinner
      }
    
      @Test
      fun authenticator() {
    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)
  6. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

          Platform
            .get()
            .newSSLContext()
            .apply {
              init(null, arrayOf(trustManager), null)
            }.socketFactory
    
        private fun createInsecureHostnameVerifier(): HostnameVerifier = HostnameVerifier { _, _ -> true }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

    import java.security.cert.X509Certificate
    import java.util.Locale
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLException
    import javax.net.ssl.SSLSession
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.toCanonicalHost
    import okio.utf8Size
    
    /**
     * A HostnameVerifier consistent with [RFC 2818][rfc_2818].
     *
     * [rfc_2818]: http://www.ietf.org/rfc/rfc2818.txt
     */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

        response1.body.close()
    
        // This client shares a connection pool but has a different SSL socket factory.
        val anotherClient =
          client
            .newBuilder()
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        val response2 = anotherClient.newCall(request).execute()
        response2.body.close()
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (1)
  9. okhttp/api/jvm/okhttp.api

    	public final fun dns ()Lokhttp3/Dns;
    	public fun equals (Ljava/lang/Object;)Z
    	public fun hashCode ()I
    	public final fun hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    	public final fun protocols ()Ljava/util/List;
    	public final fun proxy ()Ljava/net/Proxy;
    	public final fun proxyAuthenticator ()Lokhttp3/Authenticator;
    	public final fun proxySelector ()Ljava/net/ProxySelector;
    	public final fun socketFactory ()Ljavax/net/SocketFactory;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        )
        val hostnameVerifier = RecordingHostnameVerifier()
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).proxy(server.proxyAddress)
            .hostnameVerifier(hostnameVerifier)
            .build()
        val request =
          Request
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
Back to Top