- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for hostnameVerifier (0.09 sec)
-
okhttp/src/main/kotlin/okhttp3/Address.kt
@JvmName("-deprecated_hostnameVerifier") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "hostnameVerifier"), level = DeprecationLevel.ERROR, ) fun hostnameVerifier(): HostnameVerifier? = hostnameVerifier @JvmName("-deprecated_certificatePinner") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "certificatePinner"),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.4K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
init(null, arrayOf(trustManager), null) } 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
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
sslSocketFactory: SSLSocketFactory? = this.sslSocketFactory, hostnameVerifier: HostnameVerifier? = this.hostnameVerifier, ): Address { return Address( uriHost = uriHost, uriPort = uriPort, dns = dns, socketFactory = SocketFactory.getDefault(), sslSocketFactory = sslSocketFactory, hostnameVerifier = hostnameVerifier, certificatePinner = null,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
* * If unset, a default hostname verifier will be used. */ fun hostnameVerifier(hostnameVerifier: HostnameVerifier) = apply { if (hostnameVerifier != this.hostnameVerifier) { this.routeDatabase = null } this.hostnameVerifier = hostnameVerifier } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/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 okhttp3.Headers.Companion.headersOf import okhttp3.internal.buildCache
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val proxySelector: ProxySelector = address.proxySelector() val proxy: Proxy? = address.proxy() val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory() val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier() val certificatePinner: CertificatePinner? = address.certificatePinner() } @Test @Disabled fun cache() { val cache = Cache(File("/cache/"), Integer.MAX_VALUE.toLong())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.3K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
Platform.get().newSSLContext().apply { init(null, arrayOf(trustManager), null) }.socketFactory private fun createInsecureHostnameVerifier(): HostnameVerifier = HostnameVerifier { _, _ -> true } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
val client = clientTestRule.newClientBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .hostnameVerifier(RecordingHostnameVerifier()) .certificatePinner(certificatePinner) .build() val serverHandshakeCertificates = HandshakeCertificates.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.8K bytes - Viewed (0) -
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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 980 bytes - Viewed (0)