Home
last modified time | relevance | path

Searched refs:serverContext (Results 1 – 25 of 36) sorted by relevance

12

/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSessionContextTest.java84 Enumeration<byte[]> serverIds = s.c.serverContext.getServerSessionContext().getIds(); in test_SSLSessionContext_getIds()
109 c.serverContext.getServerSessionContext().getSession(null); in test_SSLSessionContext_getSession()
114 assertNull(c.serverContext.getServerSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession()
115 assertNull(c.serverContext.getServerSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession()
120 SSLSessionContext server = s.c.serverContext.getServerSessionContext(); in test_SSLSessionContext_getSession()
142 c.serverContext.getServerSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize()
149 s.c.serverContext.getServerSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize()
161 expectedServerSessionCacheSize, c.serverContext.getServerSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect()
184 SSLSessionContext server = s.c.serverContext.getServerSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect()
199 SSLSessionContext server = c.serverContext.getServerSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic()
[all …]
DSSLEngineVersionCompatibilityTest.java193 SSLContext serverContext = SSLContext.getInstance(serverVersion); in test_SSLEngine_beginHandshake_noKeyStore() local
194 serverContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore()
198 .serverContext(serverContext).build(); in test_SSLEngine_beginHandshake_noKeyStore()
DSSLSocketTest.java391 SSLContext serverContext = c.serverContext; in test_SSLSocket_noncontiguousProtocols_useLower() local
423 SSLContext serverContext = c.serverContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSessionContextTest.java89 Enumeration<byte[]> serverIds = s.c.serverContext.getServerSessionContext().getIds(); in test_SSLSessionContext_getIds()
114 c.serverContext.getServerSessionContext().getSession(null); in test_SSLSessionContext_getSession()
119 assertNull(c.serverContext.getServerSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession()
120 assertNull(c.serverContext.getServerSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession()
125 SSLSessionContext server = s.c.serverContext.getServerSessionContext(); in test_SSLSessionContext_getSession()
147 c.serverContext.getServerSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize()
154 s.c.serverContext.getServerSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize()
166 expectedServerSessionCacheSize, c.serverContext.getServerSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect()
189 SSLSessionContext server = s.c.serverContext.getServerSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect()
204 SSLSessionContext server = c.serverContext.getServerSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic()
[all …]
DSSLEngineVersionCompatibilityTest.java195 SSLContext serverContext = SSLContext.getInstance(serverVersion); in test_SSLEngine_beginHandshake_noKeyStore() local
196 serverContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore()
200 .serverContext(serverContext).build(); in test_SSLEngine_beginHandshake_noKeyStore()
DSSLSocketTest.java395 SSLContext serverContext = c.serverContext; in test_SSLSocket_noncontiguousProtocols_useLower() local
427 SSLContext serverContext = c.serverContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEngineFactory.java56 private final SSLContext serverContext = initServerSslContext(newContext());
71 return initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
84 private final SSLContext serverContext = newConscryptServerContext();
97 SSLEngine engine = initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
115 private final SSLContext serverContext = newConscryptServerContext();
129 SSLEngine engine = initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
149 private final SslContext serverContext = newNettyServerContext(OPENSSL, false);
160 return initEngine(serverContext(useAlpn).newEngine(PooledByteBufAllocator.DEFAULT), in newServerEngine()
168 private SslContext serverContext(boolean useAlpn) { in serverContext() method
169 return useAlpn ? serverContextAlpn : serverContext; in serverContext()
[all …]
DOpenJdkEndpointFactory.java56 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newJdkFactories() local
58 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newJdkFactories()
59 final SSLServerSocketFactory serverSocketFactory = serverContext.getServerSocketFactory(); in newJdkFactories()
66 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories() local
68 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
69 final SSLServerSocketFactory serverSocketFactory = serverContext.getServerSocketFactory(); in newConscryptFactories()
/external/google-fruit/examples/server/
Dfoo_handler.cpp27 const ServerContext& serverContext; member in FooHandlerImpl
30 INJECT(FooHandlerImpl(const Request& request, const ServerContext& serverContext)) in INJECT() argument
31 : request(request), serverContext(serverContext) {} in INJECT()
34 cout << "FooHandler handling request on server started at " << serverContext.startupTime in handleRequest()
Dbar_handler.cpp27 const ServerContext& serverContext; member in BarHandlerImpl
30 INJECT(BarHandlerImpl(const Request& request, const ServerContext& serverContext)) in INJECT() argument
31 : request(request), serverContext(serverContext) {} in INJECT()
34 cout << "BarHandler handling request on server started at " << serverContext.startupTime in handleRequest()
Dserver.cpp40 ServerContext serverContext; in run() local
41 serverContext.startupTime = getTime(); in run()
44 getRequestDispatcherComponentWithContext, getRequestDispatcherComponent, &serverContext); in run()
92 ServerContext* serverContext) { in getRequestDispatcherComponentWithContext() argument
93 return createComponent().install(getRequestDispatcherComponent).bindInstance(*serverContext); in getRequestDispatcherComponentWithContext()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestSSLContext.java84 public final SSLContext serverContext; field in TestSSLContext
177 SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) { in TestSSLContext() argument
187 this.serverContext = serverContext; in TestSSLContext()
217 private SSLContext serverContext; field in TestSSLContext.Builder
273 public Builder serverContext(SSLContext serverContext) { in serverContext() argument
274 this.serverContext = serverContext; in serverContext()
304 SSLContext serverContext = this.serverContext; in build() local
329 serverContext = serverContext != null in build()
330 ? serverContext in build()
338 (SSLServerSocket) serverContext.getServerSocketFactory() in build()
[all …]
DTestSSLEnginePair.java104 SSLEngine server = c.serverContext.createSSLEngine(); in connect()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestSSLContext.java82 public final SSLContext serverContext; field in TestSSLContext
175 SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) { in TestSSLContext() argument
185 this.serverContext = serverContext; in TestSSLContext()
212 private SSLContext serverContext; field in TestSSLContext.Builder
268 public Builder serverContext(SSLContext serverContext) { in serverContext() method in TestSSLContext.Builder
269 this.serverContext = serverContext; in serverContext()
299 SSLContext serverContext = this.serverContext; in build() local
324 serverContext = serverContext != null in build()
325 ? serverContext in build()
333 (SSLServerSocket) serverContext.getServerSocketFactory() in build()
[all …]
DTestSSLEnginePair.java102 SSLEngine server = c.serverContext.createSSLEngine(); in connect()
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/
DAndroidEngineFactory.java29 private final SSLContext serverContext = newConscryptServerContext();
42 SSLEngine engine = initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
57 private final SSLContext serverContext = TestUtils.newServerSslContext(
71 SSLEngine engine = initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
DAndroidEndpointFactory.java54 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories() local
56 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
57 final SSLServerSocketFactory serverSocketFactory = serverContext.getServerSocketFactory(); in newConscryptFactories()
/external/conscrypt/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/
DAndroidEngineFactory.java31 private final SSLContext serverContext = newConscryptServerContext();
44 SSLEngine engine = initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
59 private final SSLContext serverContext =
73 SSLEngine engine = initEngine(serverContext.createSSLEngine(), cipher, false); in newServerEngine()
DAndroidEndpointFactory.java56 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories() local
58 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
59 final SSLServerSocketFactory serverSocketFactory = serverContext.getServerSocketFactory(); in newConscryptFactories()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiHandshakerTest.java262 AltsAuthContext serverContext = (AltsAuthContext) handshakerServer.extractPeerObject(); in extractServerPeerSuccess() local
263 assertEquals(TEST_APPLICATION_PROTOCOL, serverContext.getApplicationProtocol()); in extractServerPeerSuccess()
264 assertEquals(TEST_RECORD_PROTOCOL, serverContext.getRecordProtocol()); in extractServerPeerSuccess()
265 assertEquals(TEST_CLIENT_SERVICE_ACCOUNT, serverContext.getPeerServiceAccount()); in extractServerPeerSuccess()
266 assertEquals(TEST_SERVER_SERVICE_ACCOUNT, serverContext.getLocalServiceAccount()); in extractServerPeerSuccess()
267 assertEquals(TEST_RPC_PROTOCOL_VERSIONS, serverContext.getPeerRpcVersions()); in extractServerPeerSuccess()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DProtocolNegotiatorsTest.java343 ChannelHandlerContext serverContext = contextCaptor.getValue(); in httpProxy_completes() local
361 serverContext.writeAndFlush(bb("HTTP/1.1 200 OK\r\n\r\n", serverContext.channel())).sync(); in httpProxy_completes()
407 ChannelHandlerContext serverContext = contextCaptor.getValue(); in httpProxy_500() local
422 serverContext.writeAndFlush(bb(response, serverContext.channel())).sync(); in httpProxy_500()
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscrypt.java229 SSLSessionContext serverContext = context.getServerSessionContext(); in setServerSessionCache() local
230 if (!(serverContext instanceof ServerSessionContext)) { in setServerSessionCache()
232 "Not a conscrypt client context: " + serverContext.getClass().getName()); in setServerSessionCache()
234 ((ServerSessionContext) serverContext).setPersistentCache(cache); in setServerSessionCache()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DConscrypt.java239 SSLSessionContext serverContext = context.getServerSessionContext(); in setServerSessionCache() local
240 if (!(serverContext instanceof ServerSessionContext)) { in setServerSessionCache()
242 "Not a conscrypt client context: " + serverContext.getClass().getName()); in setServerSessionCache()
244 ((ServerSessionContext) serverContext).setPersistentCache(cache); in setServerSessionCache()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java417 SSLContext serverContext = newContext(provider, keyStore); in newEngine() local
418 SSLEngine engine = serverContext.createSSLEngine(); in newEngine()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/
DTestUtils.java337 SSLContext serverContext = initServerSslContext(newContext(provider)); in getServerSocketFactory() local
338 return serverContext.getServerSocketFactory(); in getServerSocketFactory()

12