Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for asSequenceOf (0.1 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       *
       * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
       * ```
       */
      private val subjectAlternativeName: BasicDerAdapter<List<Pair<DerAdapter<*>, Any?>>> =
        generalName.asSequenceOf()
    
      /**
       * This uses the preceding extension ID to select which adapter to use for the extension value
       * that follows.
       */
      private val extensionValue: BasicDerAdapter<Any?> =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `sequence of`() {
        val bytes = "3009020107020108020109".decodeHex()
        val sequenceOf = listOf(7L, 8L, 9L)
        val adapter = Adapters.INTEGER_AS_LONG.asSequenceOf()
        assertThat(adapter.fromDer(bytes)).isEqualTo(sequenceOf)
        assertThat(adapter.toDer(sequenceOf)).isEqualTo(bytes)
      }
    
      @Test fun `point with only x set`() {
        val bytes = "3003800109".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)
Back to top