- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WithTag (0.46 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
* ``` * * The first property of the pair is the adapter that was used, the second property is the value. */ internal val generalNameDnsName = Adapters.IA5_STRING.withTag(tag = 2L) internal val generalNameIpAddress = Adapters.OCTET_STRING.withTag(tag = 7L) internal val generalName: DerAdapter<Pair<DerAdapter<*>, Any?>> = Adapters.choice( generalNameDnsName, generalNameIpAddress, Adapters.ANY_VALUE,
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val bytes = "85026869".decodeHex() val implicitAdapter = Adapters.UTF8_STRING.withTag(tag = 5L) assertThat(implicitAdapter.fromDer(bytes)).isEqualTo("hi") assertThat(implicitAdapter.toDer("hi")).isEqualTo(bytes) } @Test fun `encode implicit`() { // [5] IMPLICIT UTF8String val implicitAdapter = Adapters.UTF8_STRING.withTag(tag = 5L) val string = implicitAdapter.fromDer("85026869".decodeHex())
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0)