- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for X509Certificate (0.12 sec)
-
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
override fun checkClientTrusted( chain: Array<out X509Certificate>?, authType: String?, ) {} override fun checkServerTrusted( chain: Array<out X509Certificate>?, authType: String?, ) {} override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } val sslContext =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
assertThat("www.nintendo.co.jp".canParseAsIpAddress()).isFalse() } private fun certificate(certificate: String): X509Certificate { return CertificateFactory.getInstance("X.509") .generateCertificate(ByteArrayInputStream(certificate.toByteArray())) as X509Certificate } private fun session(certificate: String): SSLSession = FakeSSLSession(certificate(certificate))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 40.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
@get:JvmName("keyPair") val keyPair: KeyPair, @get:JvmName("certificate") val certificate: X509Certificate, ) { @JvmName("-deprecated_certificate") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "certificate"), level = DeprecationLevel.ERROR, ) fun certificate(): X509Certificate = certificate @JvmName("-deprecated_keyPair") @Deprecated(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt
) { return check(hostname) { (certificateChainCleaner?.clean(peerCertificates, hostname) ?: peerCertificates) .map { it as X509Certificate } } } internal fun check( hostname: String, cleanedPeerCertificatesFn: () -> List<X509Certificate>, ) { val pins = findMatchingPins(hostname) if (pins.isEmpty()) return val peerCertificates = cleanedPeerCertificatesFn()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
import java.net.ConnectException import java.net.HttpURLConnection import java.net.ProtocolException import java.net.Proxy import java.net.Socket import java.net.UnknownServiceException import java.security.cert.X509Certificate import java.util.concurrent.TimeUnit import javax.net.ssl.SSLPeerUnverifiedException import javax.net.ssl.SSLSocket import kotlin.concurrent.withLock import okhttp3.CertificatePinner import okhttp3.ConnectionSpec
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 18.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
override fun checkClientTrusted( x509Certificates: Array<X509Certificate>, s: String, ) { } override fun checkServerTrusted( x509Certificates: Array<X509Certificate>, s: String, ) { } override fun getAcceptedIssuers(): Array<X509Certificate> { return arrayOf() } } client =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 18.7K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
override fun checkClientTrusted( chain: Array<X509Certificate>, authType: String, ) = throw CertificateException() override fun checkServerTrusted( chain: Array<X509Certificate>, authType: String, ) = throw AssertionError() override fun getAcceptedIssuers(): Array<X509Certificate> = throw AssertionError() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
import assertk.assertions.startsWith import java.io.IOException import java.net.SocketException import java.security.GeneralSecurityException import java.security.SecureRandom import java.security.cert.X509Certificate import java.util.Arrays import javax.net.ssl.KeyManager import javax.net.ssl.SSLContext import javax.net.ssl.SSLException import javax.net.ssl.SSLHandshakeException import javax.net.ssl.SSLPeerUnverifiedException
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
import java.net.Socket import java.net.URI import java.net.URL import java.nio.charset.Charset import java.security.KeyPair import java.security.Principal import java.security.cert.Certificate import java.security.cert.X509Certificate import javax.net.ServerSocketFactory import javax.net.SocketFactory import javax.net.ssl.HostnameVerifier import javax.net.ssl.SSLSocket import javax.net.ssl.SSLSocketFactory import javax.net.ssl.X509KeyManager
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
import assertk.assertThat import assertk.assertions.contains import assertk.assertions.isEqualTo import assertk.assertions.startsWith import java.io.IOException import java.security.SecureRandom import java.security.cert.X509Certificate import javax.net.ssl.KeyManager import javax.net.ssl.SSLHandshakeException import javax.net.ssl.SSLPeerUnverifiedException import javax.net.ssl.SSLSocketFactory import javax.net.ssl.TrustManager
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.8K bytes - Viewed (0)