Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for toByteString (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    import okhttp3.tls.internal.der.TbsCertificate
    import okhttp3.tls.internal.der.Validity
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.toByteString
    
    /**
     * A certificate and its private key. These are some properties of certificates that are used with
     * TLS:
     *
     *  * **A common name.** This is a string identifier for the certificate. It usually describes the
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.Test
    
    internal class DerCertificatesTest {
      private val stateOrProvince = "1.3.6.1.4.1.311.60.2.1.2"
      private val country = "1.3.6.1.4.1.311.60.2.1.3"
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

            }
          }
        }
      }
    
      private fun assertPrivateKeysEquals(
        expected: PrivateKey,
        actual: PrivateKey,
      ) {
        assertThat(actual.encoded.toByteString()).isEqualTo(expected.encoded.toByteString())
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.testing.PlatformRule
    import okhttp3.testing.PlatformVersion
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Assertions.assertNotEquals
    import org.junit.jupiter.api.Assumptions.assumeTrue
    import org.junit.jupiter.api.BeforeEach
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 5.9K bytes
    - Click Count (1)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

    import java.security.GeneralSecurityException
    import java.security.cert.CertificateFactory
    import java.security.cert.X509Certificate
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.toByteString
    
    /**
     * Decodes a multiline string that contains a [certificate][certificatePem] which is
     * [PEM-encoded][rfc_7468]. A typical input string looks like this:
     *
     * ```
     * -----BEGIN CERTIFICATE-----
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/JSSETest.kt

    import mockwebserver3.junit5.StartStop
    import okhttp3.TestUtil.assumeNetwork
    import okhttp3.internal.connection
    import okhttp3.testing.PlatformRule
    import okhttp3.testing.PlatformVersion
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Assertions.assertNotEquals
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Test
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

    import okhttp3.recipes.kt.WireSharkListenerFactory.WireSharkKeyLoggerListener.Launch.CommandLine
    import okhttp3.recipes.kt.WireSharkListenerFactory.WireSharkKeyLoggerListener.Launch.Gui
    import okio.ByteString.Companion.toByteString
    
    /**
     * Logs SSL keys to a log file, allowing Wireshark to decode traffic and be examined with http2
     * filter. The approach is to hook into JSSE log events for the messages between client and server
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.EMPTY
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    class WebSocketReaderTest {
      private val data = Buffer()
      private val callback = WebSocketRecorder("client")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

    import okhttp3.internal.ws.WebSocketProtocol.validateCloseCode
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.ByteString.Companion.toByteString
    import okio.Socket
    
    class RealWebSocket(
      taskRunner: TaskRunner,
      /** The application's original request unadulterated by web socket headers. */
      private val originalRequest: Request,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  10. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    import okhttp3.logging.LoggingEventListener
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil.localhost
    import okhttp3.zstd.Zstd
    import okio.ByteString.Companion.toByteString
    import org.bouncycastle.jce.provider.BouncyCastleProvider
    import org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
    import org.conscrypt.Conscrypt
    import org.junit.jupiter.api.Assertions.assertEquals
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 29.9K bytes
    - Click Count (0)
Back to Top