Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Encryption (0.17 sec)

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

    internal object ObjectIdentifiers {
      const val EC_PUBLIC_KEY = "1.2.840.10045.2.1"
      const val SHA256_WITH_ECDSA = "1.2.840.10045.4.3.2"
      const val RSA_ENCRYPTION = "1.2.840.113549.1.1.1"
      const val SHA256_WITH_RSA_ENCRYPTION = "1.2.840.113549.1.1.11"
      const val SUBJECT_ALTERNATIVE_NAME = "2.5.29.17"
      const val BASIC_CONSTRAINTS = "2.5.29.19"
      const val COMMON_NAME = "2.5.4.3"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      @Test fun `decode object identifier`() {
        val bytes = "06092a864886f70d01010b".decodeHex()
        assertThat(Adapters.OBJECT_IDENTIFIER.fromDer(bytes)).isEqualTo(SHA256_WITH_RSA_ENCRYPTION)
        assertThat(Adapters.OBJECT_IDENTIFIER.toDer(SHA256_WITH_RSA_ENCRYPTION)).isEqualTo(bytes)
      }
    
      @Test fun `null value`() {
        val bytes = "0500".decodeHex()
        assertThat(Adapters.NULL.fromDer(bytes)).isNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

       * [Signature.getInstance]. Typical values are like "SHA256WithRSA".
       */
      val signatureAlgorithmName: String
        get() {
          return when (signature.algorithm) {
            ObjectIdentifiers.SHA256_WITH_RSA_ENCRYPTION -> "SHA256WithRSA"
            ObjectIdentifiers.SHA256_WITH_ECDSA -> "SHA256withECDSA"
            else -> error("unexpected signature algorithm: ${signature.algorithm}")
          }
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    import okhttp3.tls.internal.der.ObjectIdentifiers.ORGANIZATIONAL_UNIT_NAME
    import okhttp3.tls.internal.der.ObjectIdentifiers.SHA256_WITH_ECDSA
    import okhttp3.tls.internal.der.ObjectIdentifiers.SHA256_WITH_RSA_ENCRYPTION
    import okhttp3.tls.internal.der.ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
    import okhttp3.tls.internal.der.TbsCertificate
    import okhttp3.tls.internal.der.Validity
    import okio.ByteString
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            // when it is present, and for others we must omit it!
            // https://tools.ietf.org/html/rfc4055#section-2.1
            ObjectIdentifiers.SHA256_WITH_RSA_ENCRYPTION -> Adapters.NULL
            ObjectIdentifiers.RSA_ENCRYPTION -> Adapters.NULL
            ObjectIdentifiers.EC_PUBLIC_KEY -> Adapters.OBJECT_IDENTIFIER
            else -> null
          }
        }
    
      /**
       * ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

            when {
              message == "adding as trusted certificates" -> Type.Setup
              message == "Raw read" || message == "Raw write" -> Type.Encrypted
              message == "Plaintext before ENCRYPTION" || message == "Plaintext after DECRYPTION" -> Type.Plaintext
              message.startsWith("System property ") -> Type.Setup
              message.startsWith("Reload ") -> Type.Setup
              message == "No session to resume." -> Type.Handshake
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              // Consuming server Finished handshake message
              // Produced ClientHello handshake message
              //
              // Raw write
              // Raw read
              // Plaintext before ENCRYPTION
              // Plaintext after DECRYPTION
              val message = record.message
              val parameters = record.parameters
    
              if (parameters != null && !message.startsWith("Raw") && !message.startsWith("Plaintext")) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  8. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

    import okhttp3.tls.internal.der.ObjectIdentifiers.COMMON_NAME
    import okhttp3.tls.internal.der.ObjectIdentifiers.ORGANIZATIONAL_UNIT_NAME
    import okhttp3.tls.internal.der.ObjectIdentifiers.RSA_ENCRYPTION
    import okhttp3.tls.internal.der.ObjectIdentifiers.SHA256_WITH_RSA_ENCRYPTION
    import okhttp3.tls.internal.der.ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 43.9K bytes
    - Viewed (0)
  9. CHANGELOG.md

     *  New: `Cache` now has a public constructor that takes an [okio.FileSystem]. This should make it
        possible to implement decorators for cache encryption or compression.
     *  New: `Cookie.newBuilder()` to build upon an existing cookie.
     *  New: Use TLSv1.3 when running on JDK 8u261 or newer.
     *  New: `QueueDispatcher.clear()` may be used to reset a MockWebServer instance.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top