- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for pin (0.16 sec)
-
okhttp/src/test/java/okhttp3/CertificatePinnerTest.kt
Assertions.assertTrue(pin.matchesCertificate(certA1.certificate)) Assertions.assertFalse(pin.matchesCertificate(certB1.certificate)) } @Test fun testMatchesSha1() { val pin = CertificatePinner.Pin("example.com", certC1Sha1Pin) Assertions.assertTrue(pin.matchesCertificate(certC1.certificate)) Assertions.assertFalse(pin.matchesCertificate(certB1.certificate))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.9K bytes - Viewed (0) -
docs/en/docs/deployment/versions.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Nov 05 20:50:37 GMT 2020 - 3.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt
assertFalse(pin.matchesHostname("www.example.com")) } @Test fun testMatchesSha256() { val pin = Pin("example.com", certA1Sha256Pin) assertTrue(pin.matchesCertificate(certA1.certificate)) assertFalse(pin.matchesCertificate(certB1.certificate)) } @Test fun testMatchesSha1() { val pin = Pin("example.com", certC1Sha1Pin) assertTrue(pin.matchesCertificate(certC1.certificate))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt
when { pin.startsWith("sha1/") -> { this.hashAlgorithm = "sha1" this.hash = pin.substring("sha1/".length).decodeBase64() ?: throw IllegalArgumentException("Invalid pin hash: $pin") } pin.startsWith("sha256/") -> { this.hashAlgorithm = "sha256"
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.SocketPolicy.DisconnectAtEnd import okhttp3.CertificatePinner import okhttp3.CertificatePinner.Companion.pin import okhttp3.OkHttpClientTestRule import okhttp3.RecordingHostnameVerifier import okhttp3.Request import okhttp3.internal.platform.Platform.Companion.get import okhttp3.testing.PlatformRule
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 23.8K bytes - Viewed (0) -
ci/official/requirements_updater/requirements.in
# TODO(b/304751256): Adjust the numpy pin to a single version, when ready numpy ~= 1.23.5 ; python_version <= "3.11" numpy ~= 1.26.0 ; python_version >= "3.12" wheel ~= 0.41.2 h5py >= 3.10.0 lit ~= 17.0.2 opt_einsum == 3.3.0 astunparse == 1.6.3 dill == 0.3.7 astor == 0.7.1 typing_extensions == 4.8.0 gast == 0.4.0 termcolor == 2.3.0 wrapt == 1.16.0 tblib == 2.0.0 # Install tensorboard, and keras
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 07:17:18 GMT 2024 - 806 bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt
if (!response.isSuccessful) throw IOException("Unexpected code $response") for (certificate in response.handshake!!.peerCertificates) { println(CertificatePinner.pin(certificate)) } } } } fun main() { CertificatePinning().run()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.4K bytes - Viewed (0) -
SECURITY.md
You can learn more about [FastAPI versions and how to pin and upgrade them](https://fastapi.tiangolo.com/deployment/versions/) for your project in the docs. ## Reporting a Vulnerability
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Sep 11 16:15:49 GMT 2022 - 1.3K bytes - Viewed (0) -
docs/features/https.md
if (!response.isSuccessful) throw IOException("Unexpected code $response") for (certificate in response.handshake!!.peerCertificates) { println(CertificatePinner.pin(certificate)) } } } ``` === ":material-language-java: Java" ```java private final OkHttpClient client = new OkHttpClient.Builder() .certificatePinner(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Dec 24 00:16:30 GMT 2022 - 10.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt
/** * Returns true if the host and port are unchanged from when this was created. This is used to * detect if followups need to do a full connection-finding process including DNS resolution, and * certificate pin checks. */ fun sameHostAndPort(url: HttpUrl): Boolean /** * A plan holds either an immediately-usable connection, or one that must be connected first.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 4.2K bytes - Viewed (0)