Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 81 for Certificates (0.15 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/CertificatesTest.kt

          8V0vxo1pHXnbBrnxhS/Z3TBerw8RyQqcaWOdp+pBXyIWmR+jHk9cHZCqQveTIBsY
          jaA9VEhgdaVhxBsT2qzUNDsXlOzGsliznDfoqETb
          -----END CERTIFICATE-----
          
          """.trimIndent()
        val certificate = certificateString.decodeCertificatePem()
        assertEquals(certificateString, certificate.certificatePem())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K 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();
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 08 21:30:01 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        val client =
          OkHttpClient.Builder()
            .sslSocketFactory(sslContext.socketFactory, trustManager)
            .build()
    
        // An example test URL that returns client certificate details.
        val request =
          Request.Builder()
            .url("https://prod.idrix.eu/secure/")
            .build()
    
        client.newCall(request).execute().use { response ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .signedBy(serverCa)
            .addSubjectAlternativeName(server.hostName)
            .build()
        val serverHandshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(clientCa.certificate)
            .heldCertificate(serverCertificate)
            .build()
        server.useHttps(serverHandshakeCertificates.sslSocketFactory(), false)
        server.enqueue(MockResponse().setBody("abc"))
        server.requestClientAuth()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    import java.io.IOException
    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.security.KeyStore
    import java.security.SecureRandom
    import java.security.Security
    import java.security.cert.Certificate
    import java.security.cert.CertificateException
    import java.security.cert.X509Certificate
    import java.util.concurrent.atomic.AtomicInteger
    import java.util.logging.Handler
    import java.util.logging.Level
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  6. okhttp-tls/api/okhttp-tls.api

    	public static final field Companion Lokhttp3/tls/HeldCertificate$Companion;
    	public final fun -deprecated_certificate ()Ljava/security/cert/X509Certificate;
    	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;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Feb 26 19:17:33 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HandshakeTest.kt

            peerCertificates = listOf(serverCertificate.certificate, serverIntermediate.certificate),
            localCertificates = listOf(),
          )
    
        assertThat(handshake.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        assertThat(handshake.cipherSuite).isEqualTo(CipherSuite.TLS_AES_128_GCM_SHA256)
        assertThat(handshake.peerCertificates).containsExactly(
          serverCertificate.certificate,
          serverIntermediate.certificate,
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            )
          },
        )
    
      /**
       * ```
       * Certificate ::= SEQUENCE  {
       *   tbsCertificate       TBSCertificate,
       *   signatureAlgorithm   AlgorithmIdentifier,
       *   signatureValue       BIT STRING
       * }
       * ```
       */
      internal val certificate: BasicDerAdapter<Certificate> =
        Adapters.sequence(
          "Certificate",
          tbsCertificate,
          algorithmIdentifier,
    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)
  9. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        builder = builder.heldCertificate(heldCertificate, heldCertificate.certificate())
        builder = builder.addTrustedCertificate(heldCertificate.certificate())
      }
    
      @Test @Disabled
      fun heldCertificate() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
        val certificate: X509Certificate = heldCertificate.certificate()
        val keyPair: KeyPair = heldCertificate.keyPair()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt

            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for (certificate in response.handshake!!.peerCertificates) {
            println(CertificatePinner.pin(certificate))
          }
        }
      }
    }
    
    fun main() {
      CertificatePinning().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
Back to top