- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for findByIssuerAndSignature (0.46 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/tls/TrustRootIndex.kt
*/ package okhttp3.internal.tls import java.security.cert.X509Certificate fun interface TrustRootIndex { /** Returns the trusted CA certificate that signed [cert]. */ fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate?
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 843 bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt
for (caCert in caCerts) { map.getOrPut(caCert.subjectX500Principal) { mutableSetOf() }.add(caCert) } this.subjectToCaCerts = map } override fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate? { val issuer = cert.issuerX500Principal val subjectCaCerts = subjectToCaCerts[issuer] ?: return null return subjectCaCerts.firstOrNull { try {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt
// the end of the chain unless it's already present. (That would happen if the first // certificate in the chain is itself a self-signed and trusted CA certificate.) val trustedCert = trustRootIndex.findByIssuerAndSignature(toVerify) if (trustedCert != null) { if (result.size > 1 || toVerify != trustedCert) { result.add(trustedCert) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
*/ internal data class CustomTrustRootIndex( private val trustManager: X509TrustManager, private val findByIssuerAndSignatureMethod: Method, ) : TrustRootIndex { override fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate? { return try { val trustAnchor = findByIssuerAndSignatureMethod.invoke( trustManager, cert,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.2K bytes - Viewed (0)