- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for withExplicitBox (0.06 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
when (typeHint) { ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME -> subjectAlternativeName ObjectIdentifiers.BASIC_CONSTRAINTS -> basicConstraints else -> null } }.withExplicitBox( tagClass = Adapters.OCTET_STRING.tagClass, tag = Adapters.OCTET_STRING.tag, forceConstructed = false, ) /** * ``` * Extension ::= SEQUENCE {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 13.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(string).isEqualTo("hi") } @Test fun `explicit tag`() { // [5] EXPLICIT UTF8String val bytes = "A5040C026869".decodeHex() val explicitAdapter = Adapters.UTF8_STRING.withExplicitBox(tag = 5L) assertThat(explicitAdapter.fromDer(bytes)).isEqualTo("hi") assertThat(explicitAdapter.toDer("hi")).isEqualTo(bytes) } @Test fun `boolean`() { val bytes = "0101FF".decodeHex()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 31.7K bytes - Viewed (0)