- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for readObjectIdentifier (0.1 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
if (bytesLeft == -1L || constructed) { throw ProtocolException("constructed strings not supported for DER") } return source.readUtf8(bytesLeft) } fun readObjectIdentifier(): String { val result = Buffer() val dot = '.'.code.toByte().toInt() when (val xy = readVariableLengthLong()) { in 0L until 40L -> { result.writeDecimalLong(0)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 6L, codec = object : BasicDerAdapter.Codec<String> { override fun decode(reader: DerReader): String = reader.readObjectIdentifier() override fun encode( writer: DerWriter, value: String, ) = writer.writeObjectIdentifier(value) }, ) val UTF8_STRING =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(header.tag).isEqualTo(6L) assertThat(header.tagClass).isEqualTo(DerHeader.TAG_CLASS_UNIVERSAL) assertThat(header.length).isEqualTo(3L) assertThat(derReader.readObjectIdentifier()).isEqualTo("2.999.3") } assertThat(derReader.hasNext()).isFalse() } @Test fun `encode object identifier without adapter`() { val buffer = Buffer()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0)