Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 111 for CERTIFICATE (0.04 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/CertificatesJavaTest.java

          + "jaA9VEhgdaVhxBsT2qzUNDsXlOzGsliznDfoqETb\n"
          + "-----END CERTIFICATE-----\n";
    
        X509Certificate certificate =
            Certificates.decodeCertificatePem(certificateString);
    
        assertEquals(certificateString, Certificates.certificatePem(certificate));
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Nov 20 02:23:18 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          for (Certificate certificate : response.handshake().peerCertificates()) {
            System.out.println(CertificatePinner.pin(certificate));
          }
        }
      }
    
      public static void main(String... args) throws Exception {
        new CertificatePinning().run();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Dec 08 21:30:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_3x.md

     *  **OkHttp's new okhttp-tls submodule tames HTTPS and TLS.**
    
        `HeldCertificate` is a TLS certificate and its private key. Generate a certificate with its
        builder then use it to sign another certificate or perform a TLS handshake. The
        `certificatePem()` method encodes the certificate in the familiar PEM format
        (`--- BEGIN CERTIFICATE ---`); the `privateKeyPkcs8Pem()` does likewise for the private key.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

     * explicitly requested), this also includes that proxy information. For secure connections the
     * address also includes the SSL socket factory, hostname verifier, and certificate pinner.
     *
     * HTTP requests that share the same [Address] may also share the same [Connection].
     */
    class Address(
      uriHost: String,
      uriPort: Int,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/TrustRootIndex.kt

     * limitations under the License.
     */
    package okhttp3.internal.tls
    
    import java.security.cert.X509Certificate
    
    fun interface TrustRootIndex {
      /** Returns the trusted CA certificate that signed [cert]. */
      fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate?
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 843 bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      /**
       * Configure the server to [want client auth][SSLSocket.setWantClientAuth]. If the
       * client presents a certificate that is [trusted][TrustManager] the handshake will
       * proceed normally. The connection will also proceed normally if the client presents no
       * certificate at all! But if the client presents an untrusted certificate the handshake
       * will fail and no connection will be established.
       */
      public fun requestClientAuth() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt

            .build()
        val handshakeCertificates =
          HandshakeCertificates
            .Builder()
            .heldCertificate(heldCertificate)
            .addTrustedCertificate(heldCertificate.certificate)
            .build()
    
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  8. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

    ) : CertificateChainCleaner() {
      @Suppress("UNCHECKED_CAST")
      @Throws(SSLPeerUnverifiedException::class)
      @SuppressSignatureCheck
      override fun clean(
        chain: List<Certificate>,
        hostname: String,
      ): List<Certificate> {
        val certificates = (chain as List<X509Certificate>).toTypedArray()
        try {
          return x509TrustManagerExtensions.checkServerTrusted(certificates, "RSA", hostname)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      }
    
      override fun getValueNames(): Array<String> = delegate!!.valueNames
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerCertificates(): Array<Certificate>? = delegate!!.peerCertificates
    
      override fun getLocalCertificates(): Array<Certificate>? = delegate!!.localCertificates
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerCertificateChain(): Array<X509Certificate> = delegate!!.peerCertificateChain
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. okhttp-tls/api/okhttp-tls.api

    	public final fun -deprecated_keyPair ()Ljava/security/KeyPair;
    	public fun <init> (Ljava/security/KeyPair;Ljava/security/cert/X509Certificate;)V
    	public final fun certificate ()Ljava/security/cert/X509Certificate;
    	public final fun certificatePem ()Ljava/lang/String;
    	public static final fun decode (Ljava/lang/String;)Lokhttp3/tls/HeldCertificate;
    	public final fun keyPair ()Ljava/security/KeyPair;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Feb 26 19:17:33 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top