- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for keyManagers (0.06 sec)
-
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 Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
val algorithm = if (isBouncyCastle) "PKIX" else KeyManagerFactory.getDefaultAlgorithm() val factory = KeyManagerFactory.getInstance(algorithm) 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 Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.3K bytes - Viewed (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 Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.4K bytes - Viewed (0) -
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 Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 12.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 24.3K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0)