Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DerHeader (0.06 sec)

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

         * show up in ASN.1 streams to also indicate the end of SEQUENCE, SET or other constructed
         * value.
         */
        private val END_OF_DATA =
          DerHeader(
            tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
            tag = DerHeader.TAG_END_OF_CONTENTS,
            constructed = false,
            length = -1L,
          )
      }
    
      /** A source that keeps track of how many bytes it's consumed. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

     */
    internal object Adapters {
      val BOOLEAN =
        BasicDerAdapter(
          name = "BOOLEAN",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 1L,
          codec =
            object : BasicDerAdapter.Codec<Boolean> {
              override fun decode(reader: DerReader): Boolean = reader.readBoolean()
    
              override fun encode(
                writer: DerWriter,
                value: Boolean,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

            .write("43054A6F6E6573".decodeHex())
    
        val derReader = DerReader(buffer)
    
        derReader.read("test") { header ->
          assertThat(header.tag).isEqualTo(3L)
          assertThat(header.tagClass).isEqualTo(DerHeader.TAG_CLASS_APPLICATION)
          assertThat(derReader.readOctetString()).isEqualTo("Jones".encodeUtf8())
        }
    
        assertThat(derReader.hasNext()).isFalse()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       * > GeneralizedTime.
       */
      internal val time: DerAdapter<Long> =
        object : DerAdapter<Long> {
          override fun matches(header: DerHeader): Boolean {
            return Adapters.UTC_TIME.matches(header) || Adapters.GENERALIZED_TIME.matches(header)
          }
    
          override fun fromDer(reader: DerReader): Long {
            val peekHeader =
              reader.peekHeader()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

          Extension(
            id = SUBJECT_ALTERNATIVE_NAME,
            critical = false,
            value =
              listOf(
                Adapters.ANY_VALUE to
                  AnyValue(
                    tagClass = DerHeader.TAG_CLASS_CONTEXT_SPECIFIC,
                    tag = 1L,
                    constructed = false,
                    length = 16,
                    bytes = "******@****.***".encodeUtf8(),
                  ),
              ),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top