Home
last modified time | relevance | path

Searched refs:clientContext (Results 1 – 25 of 41) sorted by relevance

12

/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSessionContextTest.java87 Enumeration<byte[]> clientIds = s.c.clientContext.getClientSessionContext().getIds(); in test_SSLSessionContext_getIds()
105 c.clientContext.getClientSessionContext().getSession(null); in test_SSLSessionContext_getSession()
110 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession()
111 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession()
123 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_getSession()
144 c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize()
151 s.c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize()
163 expectedClientSessionCacheSize, c.clientContext.getClientSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect()
187 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect()
202 SSLSessionContext client = c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic()
[all …]
DSSLSocketVersionCompatibilityTest.java167 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
225 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
237 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
257 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_NoEnabledCipherSuites_Failure()
261 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
292 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_startHandshake_noKeyStore()
296 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
328 SSLContext clientContext = c.clientContext; in test_SSLSocket_startHandshake_noClientCertificate() local
330 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
353 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
[all …]
DSSLEngineTest.java65 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration()
71 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies()
201 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect()
205 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect()
242 boolean needsRecordSplit = "TLS".equalsIgnoreCase(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect()
380 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies()
388 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledCipherSuites_storesCopy()
461 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedProtocols_returnsCopies()
469 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledProtocols_returnsCopies()
477 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledProtocols_storesCopy()
[all …]
DSSLSocketTest.java169 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect()
430 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_useLower() local
432 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower()
461 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local
463 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate()
509 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
571 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_client() local
573 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
599 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_server()
665 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_server() local
[all …]
DSSLSessionTest.java246 context.clientContext.getClientSessionContext().setSessionTimeout(1000000); in test_SSLSession_getPeerCertificates_resumption()
247 context.clientContext.getClientSessionContext().setSessionCacheSize(0); in test_SSLSession_getPeerCertificates_resumption()
249 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption()
259 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption()
352 assertEquals(s.s.c.clientContext.getClientSessionContext(), s.client.getSessionContext()); in test_SSLSession_getSessionContext()
506 final SSLSocket client = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerHostFromInetAddress()
DSSLEngineVersionCompatibilityTest.java195 c.clientContext.createSSLEngine().beginHandshake(); in test_SSLEngine_beginHandshake()
209 SSLContext clientContext = SSLContext.getInstance(clientVersion); in test_SSLEngine_beginHandshake_noKeyStore() local
210 clientContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore()
215 .clientContext(clientContext) in test_SSLEngine_beginHandshake_noKeyStore()
249 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_clientAuth()
696 SSLSession session = c.clientContext.createSSLEngine().getSession(); in test_SSLEngine_Exception()
705 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in test_SSLEngine_Exception()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSessionContextTest.java83 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 …]
DSSLSocketVersionCompatibilityTest.java165 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
223 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
235 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
255 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_NoEnabledCipherSuites_Failure()
259 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
290 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_startHandshake_noKeyStore()
294 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
326 SSLContext clientContext = c.clientContext; in test_SSLSocket_startHandshake_noClientCertificate() local
328 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
351 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
[all …]
DSSLEngineTest.java61 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration()
67 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies()
197 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect()
201 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect()
238 boolean needsRecordSplit = "TLS".equalsIgnoreCase(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect()
376 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies()
384 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledCipherSuites_storesCopy()
457 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedProtocols_returnsCopies()
465 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledProtocols_returnsCopies()
473 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledProtocols_storesCopy()
[all …]
DSSLSocketTest.java165 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect()
426 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_useLower() local
428 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower()
457 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local
459 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate()
505 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
567 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_client() local
569 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
595 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_server()
661 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_server() local
[all …]
DSSLSessionTest.java242 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()
DSSLEngineVersionCompatibilityTest.java193 c.clientContext.createSSLEngine().beginHandshake(); in test_SSLEngine_beginHandshake()
207 SSLContext clientContext = SSLContext.getInstance(clientVersion); in test_SSLEngine_beginHandshake_noKeyStore() local
208 clientContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore()
213 .clientContext(clientContext) in test_SSLEngine_beginHandshake_noKeyStore()
247 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_clientAuth()
694 SSLSession session = c.clientContext.createSSLEngine().getSession(); in test_SSLEngine_Exception()
703 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in test_SSLEngine_Exception()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEngineFactory.java55 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 …]
DOpenJdkEndpointFactory.java55 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/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestSSLContext.java81 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() method in TestSSLContext.Builder
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/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestSSLContext.java83 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() method in TestSSLContext.Builder
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()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java63 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/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/
DAndroidEngineFactory.java30 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()
DAndroidEndpointFactory.java55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local
57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/
DAndroidEngineFactory.java28 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()
DAndroidEndpointFactory.java53 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local
55 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiHandshakerTest.java237 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/python/pyopenssl/tests/
Dtest_ssl.py991 clientContext = Context(TLSv1_METHOD)
992 clientContext.load_verify_locations(*args)
995 clientContext.set_verify(
999 clientSSL = Connection(clientContext, client)
1054 clientContext = Context(TLSv1_METHOD)
1056 clientContext.load_verify_locations(tmpfile)
1230 def _handshake_test(self, serverContext, clientContext): argument
1240 client = Connection(clientContext, clientSocket)
1270 clientContext = Context(TLSv1_METHOD)
1271 clientContext.set_verify(VERIFY_PEER, verify.callback)
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscrypt.java231 SSLSessionContext clientContext = context.getClientSessionContext(); in setClientSessionCache() local
232 if (!(clientContext instanceof ClientSessionContext)) { in setClientSessionCache()
234 "Not a conscrypt client context: " + clientContext.getClass().getName()); in setClientSessionCache()
236 ((ClientSessionContext) clientContext).setPersistentCache(cache); in setClientSessionCache()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DConscrypt.java241 SSLSessionContext clientContext = context.getClientSessionContext(); in setClientSessionCache() local
242 if (!(clientContext instanceof ClientSessionContext)) { in setClientSessionCache()
244 "Not a conscrypt client context: " + clientContext.getClass().getName()); in setClientSessionCache()
246 ((ClientSessionContext) clientContext).setPersistentCache(cache); in setClientSessionCache()

12