Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for keyManager (0.06 sec)

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

      @get:JvmName("keyManager") val keyManager: X509KeyManager,
      @get:JvmName("trustManager") val trustManager: X509TrustManager,
    ) {
      @JvmName("-deprecated_keyManager")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "keyManager"),
        level = DeprecationLevel.ERROR,
      )
      fun keyManager(): X509KeyManager = keyManager
    
      @JvmName("-deprecated_trustManager")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        keyManagerFactory.init(KeyStoreBuilderParameters(builderList))
        val keyManager = keyManagerFactory.keyManagers[0] as X509ExtendedKeyManager
    
        val trustManager = Platform.get().platformTrustManager()
    
        val sslContext = SSLContext.getInstance("TLS")
        sslContext.init(arrayOf(keyManager), arrayOf(trustManager), SecureRandom())
    
        val client =
          OkHttpClient.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

              emptyList(),
            )
          val sslContext = SSLContext.getInstance("TLS")
          sslContext.init(
            arrayOf<KeyManager>(keyManager),
            arrayOf<TrustManager>(trustManager),
            SecureRandom(),
          )
          sslContext.socketFactory
        } catch (e: GeneralSecurityException) {
          throw AssertionError(e)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

            .heldCertificate(certificate, intermediate.certificate)
            .build()
        assertPrivateKeysEquals(
          certificate.keyPair.private,
          handshakeCertificates.keyManager.getPrivateKey("private"),
        )
        assertThat(handshakeCertificates.keyManager.getCertificateChain("private").toList())
          .isEqualTo(listOf(certificate.certificate, intermediate.certificate))
      }
    
      @Test fun platformTrustedCertificates() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val parse: HttpUrl? = HttpUrl.parse("")
      }
    
      @Test @Disabled
      fun handshakeCertificates() {
        val handshakeCertificates = HandshakeCertificates.Builder().build()
        val keyManager: X509KeyManager = handshakeCertificates.keyManager()
        val trustManager: X509TrustManager = handshakeCertificates.trustManager()
      }
    
      @Test @Disabled
      fun handshakeCertificatesBuilder() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.startsWith
    import java.io.IOException
    import java.security.SecureRandom
    import java.security.cert.X509Certificate
    import javax.net.ssl.KeyManager
    import javax.net.ssl.SSLHandshakeException
    import javax.net.ssl.SSLPeerUnverifiedException
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.TrustManager
    import kotlin.test.assertFailsWith
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val chain: Interceptor.Chain = newInterceptorChain()
      }
    
      @Test
      fun handshakeCertificates() {
        val handshakeCertificates = HandshakeCertificates.Builder().build()
        val keyManager: X509KeyManager = handshakeCertificates.keyManager
        val trustManager: X509TrustManager = handshakeCertificates.trustManager
        val sslSocketFactory: SSLSocketFactory = handshakeCertificates.sslSocketFactory()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

        }
    
        val factory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm())
        factory.init(keyStore, password)
        val result = factory.keyManagers!!
        check(result.size == 1 && result[0] is X509KeyManager) {
          "Unexpected key managers:${result.contentToString()}"
        }
    
        return result[0] as X509KeyManager
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top