- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for withExplicitBox (0.15 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt
* declared to have non-constructed values, like OCTET STRING values. */ @Suppress("UNCHECKED_CAST") // read() produces a single element of the expected type. fun withExplicitBox( tagClass: Int = DerHeader.TAG_CLASS_CONTEXT_SPECIFIC, tag: Long, forceConstructed: Boolean? = null, ): BasicDerAdapter<T> { val codec = object : BasicDerAdapter.Codec<T> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0)