- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for sha1Hash (0.25 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
import java.util.Arrays import javax.net.ssl.SSLPeerUnverifiedException import kotlin.test.assertFailsWith import okhttp3.CertificatePinner.Companion.pin import okhttp3.CertificatePinner.Companion.sha1Hash import okhttp3.tls.HeldCertificate import okio.ByteString.Companion.decodeBase64 import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Assertions.assertEquals 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 - 10.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt
*/ package okhttp3 import assertk.assertThat import assertk.assertions.containsExactly import assertk.assertions.isEmpty import assertk.assertions.isEqualTo import okhttp3.CertificatePinner.Companion.sha1Hash import okhttp3.CertificatePinner.Pin import okhttp3.tls.HeldCertificate import okio.ByteString.Companion.decodeBase64 import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertFalse
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
if (sha256 == null) sha256 = peerCertificate.sha256Hash() if (pin.hash == sha256) return // Success! } "sha1" -> { if (sha1 == null) sha1 = peerCertificate.sha1Hash() if (pin.hash == sha1) return // Success! } else -> throw AssertionError("unsupported hashAlgorithm: ${pin.hashAlgorithm}") } } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.1K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
public final fun getPins ()Ljava/util/Set; public fun hashCode ()I public static final fun pin (Ljava/security/cert/Certificate;)Ljava/lang/String; public static final fun sha1Hash (Ljava/security/cert/X509Certificate;)Lokio/ByteString; public static final fun sha256Hash (Ljava/security/cert/X509Certificate;)Lokio/ByteString; } public final class okhttp3/CertificatePinner$Builder {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
public final fun getPins ()Ljava/util/Set; public fun hashCode ()I public static final fun pin (Ljava/security/cert/Certificate;)Ljava/lang/String; public static final fun sha1Hash (Ljava/security/cert/X509Certificate;)Lokio/ByteString; public static final fun sha256Hash (Ljava/security/cert/X509Certificate;)Lokio/ByteString; } public final class okhttp3/CertificatePinner$Builder {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0)