- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for KeyManager (0.07 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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)