- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 41 for hostnameVerifier (0.07 sec)
-
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 {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 980 bytes - Viewed (0) -
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 -----------------
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
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 */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.6K bytes - Viewed (0) -
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() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0) -
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)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 12.2K bytes - Viewed (1) -
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
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
*/ package okhttp3.tls import java.security.KeyStoreException import java.security.SecureRandom import java.security.cert.X509Certificate import java.util.Collections import javax.net.ssl.HostnameVerifier import javax.net.ssl.KeyManager import javax.net.ssl.SSLContext import javax.net.ssl.SSLSocketFactory import javax.net.ssl.TrustManager import javax.net.ssl.X509KeyManager import javax.net.ssl.X509TrustManager
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.4K bytes - Viewed (0) -
docs/features/connections.md
* They specify that the call may be plaintext (`http`) or encrypted (`https`), but not which cryptographic algorithms should be used. Nor do they specify how to verify the peer's certificates (the [HostnameVerifier](https://developer.android.com/reference/javax/net/ssl/HostnameVerifier.html)) or which certificates can be trusted (the [SSLSocketFactory](https://developer.android.com/reference/org/apache/http/conn/ssl/SSLSocketFactory.html)).
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Feb 21 03:33:59 UTC 2022 - 5.4K bytes - Viewed (0) -
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;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
return sslSocket } } client = client .newBuilder() .sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!) .hostnameVerifier { hostname, session -> val s = "hostname: $hostname peerHost:${session.peerHost}" Log.d("SniOverrideTest", s) try { val cert = session.peerCertificates[0] as X509Certificate
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (0)