/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLSessionContextTest.java | 83 Enumeration<byte[]> clientIds = s.c.clientContext.getClientSessionContext().getIds(); in test_SSLSessionContext_getIds() 101 c.clientContext.getClientSessionContext().getSession(null); in test_SSLSessionContext_getSession() 106 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession() 107 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession() 119 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_getSession() 140 c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 147 s.c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 159 expectedClientSessionCacheSize, c.clientContext.getClientSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect() 183 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect() 198 SSLSessionContext client = c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic() [all …]
|
D | SSLEngineTest.java | 60 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration() 66 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies() 196 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() 200 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 237 boolean needsRecordSplit = "TLS".equalsIgnoreCase(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 375 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies() 383 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledCipherSuites_storesCopy() 456 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedProtocols_returnsCopies() 464 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledProtocols_returnsCopies() 472 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledProtocols_storesCopy() [all …]
|
D | SSLSocketVersionCompatibilityTest.java | 194 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 252 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 264 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 284 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_NoEnabledCipherSuites_Failure() 288 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure() 319 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_startHandshake_noKeyStore() 323 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore() 355 SSLContext clientContext = c.clientContext; in test_SSLSocket_startHandshake_noClientCertificate() local 357 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate() 380 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener() [all …]
|
D | SSLSocketTest.java | 165 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() 392 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_useLower() local 394 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower() 424 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local 426 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate() 472 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake() 528 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake() local 530 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake() 571 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_untrustedServer() 828 final SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success() [all …]
|
D | SSLSessionTest.java | 242 context.clientContext.getClientSessionContext().setSessionTimeout(1000000); in test_SSLSession_getPeerCertificates_resumption() 243 context.clientContext.getClientSessionContext().setSessionCacheSize(0); in test_SSLSession_getPeerCertificates_resumption() 245 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 255 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 348 assertEquals(s.s.c.clientContext.getClientSessionContext(), s.client.getSessionContext()); in test_SSLSession_getSessionContext() 502 final SSLSocket client = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerHostFromInetAddress()
|
D | SSLEngineVersionCompatibilityTest.java | 177 c.clientContext.createSSLEngine().beginHandshake(); in test_SSLEngine_beginHandshake() 191 SSLContext clientContext = SSLContext.getInstance(clientVersion); in test_SSLEngine_beginHandshake_noKeyStore() local 192 clientContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore() 197 .clientContext(clientContext) in test_SSLEngine_beginHandshake_noKeyStore() 231 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_clientAuth()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLSessionContextTest.java | 88 Enumeration<byte[]> clientIds = s.c.clientContext.getClientSessionContext().getIds(); in test_SSLSessionContext_getIds() 106 c.clientContext.getClientSessionContext().getSession(null); in test_SSLSessionContext_getSession() 111 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession() 112 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession() 124 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_getSession() 145 c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 152 s.c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 164 expectedClientSessionCacheSize, c.clientContext.getClientSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect() 188 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect() 203 SSLSessionContext client = c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic() [all …]
|
D | SSLEngineTest.java | 64 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration() 70 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies() 200 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() 204 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 241 boolean needsRecordSplit = "TLS".equalsIgnoreCase(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 379 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies() 387 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledCipherSuites_storesCopy() 460 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedProtocols_returnsCopies() 468 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledProtocols_returnsCopies() 476 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledProtocols_storesCopy() [all …]
|
D | SSLSocketVersionCompatibilityTest.java | 196 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 254 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 266 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 286 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_NoEnabledCipherSuites_Failure() 290 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure() 321 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_startHandshake_noKeyStore() 325 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore() 357 SSLContext clientContext = c.clientContext; in test_SSLSocket_startHandshake_noClientCertificate() local 359 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate() 382 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener() [all …]
|
D | SSLSocketTest.java | 169 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() 396 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_useLower() local 398 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower() 428 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local 430 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate() 476 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake() 536 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake() local 538 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake() 580 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_untrustedServer() 837 final SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success() [all …]
|
D | SSLSessionTest.java | 250 context.clientContext.getClientSessionContext().setSessionTimeout(1000000); in test_SSLSession_getPeerCertificates_resumption() 251 context.clientContext.getClientSessionContext().setSessionCacheSize(0); in test_SSLSession_getPeerCertificates_resumption() 253 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 263 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 356 assertEquals(s.s.c.clientContext.getClientSessionContext(), s.client.getSessionContext()); in test_SSLSession_getSessionContext() 510 final SSLSocket client = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerHostFromInetAddress()
|
D | SSLEngineVersionCompatibilityTest.java | 179 c.clientContext.createSSLEngine().beginHandshake(); in test_SSLEngine_beginHandshake() 193 SSLContext clientContext = SSLContext.getInstance(clientVersion); in test_SSLEngine_beginHandshake_noKeyStore() local 194 clientContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore() 199 .clientContext(clientContext) in test_SSLEngine_beginHandshake_noKeyStore() 233 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_clientAuth()
|
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/ |
D | OpenJdkEngineFactory.java | 55 private final SSLContext clientContext = initClientSslContext(newContext()); 63 return initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 83 private final SSLContext clientContext = newConscryptClientContext(); 88 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 114 private final SSLContext clientContext = newConscryptClientContext(); 119 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 147 private final SslContext clientContext = newNettyClientContext(OPENSSL, false); 155 clientContext(useAlpn).newEngine(PooledByteBufAllocator.DEFAULT), cipher, true); in newClientEngine() 164 private SslContext clientContext(boolean useAlpn) { in clientContext() method 165 return useAlpn ? clientContextAlpn : clientContext; in clientContext() [all …]
|
D | OpenJdkEndpointFactory.java | 55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newJdkFactories() local 57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newJdkFactories() 65 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local 67 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | TestSSLContext.java | 83 public final SSLContext clientContext; field in TestSSLContext 176 X509TrustManager serverTrustManager, SSLContext clientContext, in TestSSLContext() argument 186 this.clientContext = clientContext; in TestSSLContext() 216 private SSLContext clientContext; field in TestSSLContext.Builder 268 public Builder clientContext(SSLContext clientContext) { in clientContext() argument 269 this.clientContext = clientContext; in clientContext() 303 SSLContext clientContext = this.clientContext; in build() local 325 clientContext = clientContext != null in build() 326 ? clientContext in build() 351 (X509TrustManager) serverTrustManager, clientContext, serverContext, in build()
|
D | TestSSLEnginePair.java | 94 SSLSession session = c.clientContext.createSSLEngine().getSession(); in connect() 103 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | TestSSLContext.java | 81 public final SSLContext clientContext; field in TestSSLContext 174 X509TrustManager serverTrustManager, SSLContext clientContext, in TestSSLContext() argument 184 this.clientContext = clientContext; in TestSSLContext() 211 private SSLContext clientContext; field in TestSSLContext.Builder 263 public Builder clientContext(SSLContext clientContext) { in clientContext() argument 264 this.clientContext = clientContext; in clientContext() 298 SSLContext clientContext = this.clientContext; in build() local 320 clientContext = clientContext != null in build() 321 ? clientContext in build() 346 (X509TrustManager) serverTrustManager, clientContext, serverContext, in build()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/ |
D | CertificatePinnerChainValidationTest.java | 63 SSLContext clientContext = new SslContextBuilder() in pinRootNotPresentInChain() local 67 .setSslSocketFactory(clientContext.getSocketFactory()) in pinRootNotPresentInChain() 118 SSLContext clientContext = new SslContextBuilder() in pinIntermediatePresentInChain() local 122 .setSslSocketFactory(clientContext.getSocketFactory()) in pinIntermediatePresentInChain() 177 SSLContext clientContext = new SslContextBuilder() in unrelatedPinnedLeafCertificateInChain() local 181 .setSslSocketFactory(clientContext.getSocketFactory()) in unrelatedPinnedLeafCertificateInChain() 249 SSLContext clientContext = new SslContextBuilder() in unrelatedPinnedIntermediateCertificateInChain() local 254 .setSslSocketFactory(clientContext.getSocketFactory()) in unrelatedPinnedIntermediateCertificateInChain()
|
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/ |
D | AndroidEngineFactory.java | 28 private final SSLContext clientContext = newConscryptClientContext(); 33 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 55 private final SSLContext clientContext = TestUtils.newClientSslContext( 62 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine()
|
D | AndroidEndpointFactory.java | 53 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local 55 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
|
/external/conscrypt/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/ |
D | AndroidEngineFactory.java | 30 private final SSLContext clientContext = newConscryptClientContext(); 35 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 57 private final SSLContext clientContext = 64 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine()
|
D | AndroidEndpointFactory.java | 55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local 57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsTsiHandshakerTest.java | 237 AltsAuthContext clientContext = (AltsAuthContext) handshakerClient.extractPeerObject(); in extractClientPeerSuccess() local 238 assertEquals(TEST_APPLICATION_PROTOCOL, clientContext.getApplicationProtocol()); in extractClientPeerSuccess() 239 assertEquals(TEST_RECORD_PROTOCOL, clientContext.getRecordProtocol()); in extractClientPeerSuccess() 240 assertEquals(TEST_SERVER_SERVICE_ACCOUNT, clientContext.getPeerServiceAccount()); in extractClientPeerSuccess() 241 assertEquals(TEST_CLIENT_SERVICE_ACCOUNT, clientContext.getLocalServiceAccount()); in extractClientPeerSuccess() 242 assertEquals(TEST_RPC_PROTOCOL_VERSIONS, clientContext.getPeerRpcVersions()); in extractClientPeerSuccess()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | Conscrypt.java | 217 SSLSessionContext clientContext = context.getClientSessionContext(); in setClientSessionCache() local 218 if (!(clientContext instanceof ClientSessionContext)) { in setClientSessionCache() 220 "Not a conscrypt client context: " + clientContext.getClass().getName()); in setClientSessionCache() 222 ((ClientSessionContext) clientContext).setPersistentCache(cache); in setClientSessionCache()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | Conscrypt.java | 227 SSLSessionContext clientContext = context.getClientSessionContext(); in setClientSessionCache() local 228 if (!(clientContext instanceof ClientSessionContext)) { in setClientSessionCache() 230 "Not a conscrypt client context: " + clientContext.getClass().getName()); in setClientSessionCache() 232 ((ClientSessionContext) clientContext).setPersistentCache(cache); in setClientSessionCache()
|