- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for SSLPeerUnverifiedException (0.1 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt
@Suppress("UNCHECKED_CAST") @Throws(SSLPeerUnverifiedException::class) override fun getPeerCertificates(): Array<Certificate> = if (certificates.isEmpty()) { throw SSLPeerUnverifiedException("peer not authenticated") } else { certificates as Array<Certificate> } @Throws( SSLPeerUnverifiedException::class, )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
.build() // Should be pinned: assertFailsWith<SSLPeerUnverifiedException> { certificatePinner.check("example.co.uk", listOf(certB1.certificate)) } assertFailsWith<SSLPeerUnverifiedException> { certificatePinner.check("foo.example.co.uk", listOf(certB1.certificate)) } assertFailsWith<SSLPeerUnverifiedException> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificateChainCleanerTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import java.security.cert.Certificate import javax.net.ssl.SSLPeerUnverifiedException import kotlin.test.assertFailsWith import okhttp3.internal.tls.CertificateChainCleaner.Companion.get import okhttp3.tls.HandshakeCertificates import okhttp3.tls.HeldCertificate import org.junit.jupiter.api.Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.5K bytes - Viewed (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt
if (foundTrustedCertificate) { return result } // The last link isn't trusted. Fail. throw SSLPeerUnverifiedException( "Failed to find a trusted cert that signed $toVerify", ) } throw SSLPeerUnverifiedException("Certificate chain too long: $result") } /** * Returns true if [toVerify] was signed by [signingCert]'s public key. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt
} override fun getValueNames(): Array<String> = delegate!!.valueNames @Throws(SSLPeerUnverifiedException::class) override fun getPeerCertificates(): Array<Certificate>? = delegate!!.peerCertificates override fun getLocalCertificates(): Array<Certificate>? = delegate!!.localCertificates @Throws(SSLPeerUnverifiedException::class) override fun getPeerCertificateChain(): Array<X509Certificate> = delegate!!.peerCertificateChain
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/CertificateChainCleaner.kt
* limitations under the License. */ package okhttp3.internal.tls import java.security.cert.Certificate import java.security.cert.X509Certificate import javax.net.ssl.SSLPeerUnverifiedException import javax.net.ssl.X509TrustManager import okhttp3.internal.platform.Platform /** * Computes the effective certificate chain from the raw array returned by Java's built in TLS APIs.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RetryTlsHandshake.kt
import java.io.InterruptedIOException import java.net.ProtocolException import java.security.cert.CertificateException import javax.net.ssl.SSLException import javax.net.ssl.SSLHandshakeException import javax.net.ssl.SSLPeerUnverifiedException import okio.IOException /** Returns true if a TLS connection should be retried after [e]. */ fun retryTlsHandshake(e: IOException): Boolean = when { // If there was a protocol problem, don't recover.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt
import java.lang.IllegalArgumentException import java.security.cert.Certificate import java.security.cert.CertificateException import java.security.cert.X509Certificate import javax.net.ssl.SSLPeerUnverifiedException import javax.net.ssl.X509TrustManager import okhttp3.internal.SuppressSignatureCheck import okhttp3.internal.tls.CertificateChainCleaner /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
import java.net.Proxy import java.net.Socket as JavaNetSocket 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 okhttp3.CertificatePinner import okhttp3.ConnectionSpec import okhttp3.Handshake import okhttp3.Handshake.Companion.handshake import okhttp3.Protocol
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
* successful TLS handshake, but before the connection is used. * * @throws SSLPeerUnverifiedException if `peerCertificates` don't match the certificates pinned * for `hostname`. */ @Throws(SSLPeerUnverifiedException::class) fun check( hostname: String, peerCertificates: List<Certificate>, ) = check(hostname) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.1K bytes - Viewed (0)