Home
last modified time | relevance | path

Searched refs:ProtocolNegotiators (Results 1 – 9 of 9) sorted by relevance

/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DProtocolNegotiatorsTest.java30 import io.grpc.netty.ProtocolNegotiators.HostPort;
31 import io.grpc.netty.ProtocolNegotiators.ServerTlsHandler;
32 import io.grpc.netty.ProtocolNegotiators.TlsNegotiator;
106 Object unused = ProtocolNegotiators.serverTls(null); in tlsHandler_failsOnNullEngine()
235 Logger logger = Logger.getLogger(ProtocolNegotiators.class.getName()); in engineLog()
246 ProtocolNegotiators.logSslEngineDetails( in engineLog()
257 Object unused = ProtocolNegotiators.tls(null); in tls_failsOnNullSslContext()
263 TlsNegotiator negotiator = (TlsNegotiator) ProtocolNegotiators.tls(ctx); in tls_hostAndPort()
273 TlsNegotiator negotiator = (TlsNegotiator) ProtocolNegotiators.tls(ctx); in tls_host()
283 TlsNegotiator negotiator = (TlsNegotiator) ProtocolNegotiators.tls(ctx); in tls_invalidHost()
[all …]
DNettyChannelBuilderTest.java26 import io.grpc.netty.ProtocolNegotiators.TlsNegotiator;
147 assertTrue(negotiator instanceof ProtocolNegotiators.PlaintextNegotiator); in createProtocolNegotiatorByType_plaintext()
156 assertTrue(negotiator instanceof ProtocolNegotiators.PlaintextUpgradeNegotiator); in createProtocolNegotiatorByType_plaintextUpgrade()
173 assertTrue(negotiator instanceof ProtocolNegotiators.TlsNegotiator); in createProtocolNegotiatorByType_tlsWithClientContext()
174 ProtocolNegotiators.TlsNegotiator n = (TlsNegotiator) negotiator; in createProtocolNegotiatorByType_tlsWithClientContext()
175 ProtocolNegotiators.HostPort hostPort = n.parseAuthority("authority:1234"); in createProtocolNegotiatorByType_tlsWithClientContext()
187 assertTrue(negotiator instanceof ProtocolNegotiators.TlsNegotiator); in createProtocolNegotiatorByType_tlsWithAuthorityFallback()
188 ProtocolNegotiators.TlsNegotiator n = (TlsNegotiator) negotiator; in createProtocolNegotiatorByType_tlsWithAuthorityFallback()
189 ProtocolNegotiators.HostPort hostPort = n.parseAuthority("bad_authority"); in createProtocolNegotiatorByType_tlsWithAuthorityFallback()
DNettyServerTest.java63 new ProtocolNegotiators.PlaintextNegotiator(), in getPort()
101 new ProtocolNegotiators.PlaintextNegotiator(), in getPort_notStarted()
139 new ProtocolNegotiators.PlaintextNegotiator(), in childChannelOptions()
189 new ProtocolNegotiators.PlaintextNegotiator(), in channelzListenSocket()
DNettyClientTransportTest.java117 private ProtocolNegotiator negotiator = ProtocolNegotiators.serverTls(SSL_CONTEXT);
252 negotiator = ProtocolNegotiators.serverPlaintext(); in negotiationFailurePropagatesToStatus()
285 negotiator = ProtocolNegotiators.serverTls(sslContext); in tlsNegotiationFailurePropagatesToStatus()
296 ProtocolNegotiator negotiator = ProtocolNegotiators.tls(clientContext); in tlsNegotiationFailurePropagatesToStatus()
314 negotiator = ProtocolNegotiators.serverPlaintext(); in channelExceptionDuringNegotiatonPropagatesToStatus()
334 negotiator = ProtocolNegotiators.serverPlaintext(); in handlerExceptionDuringNegotiatonPropagatesToStatus()
576 return ProtocolNegotiators.tls(clientContext); in newNegotiator()
803 private static class NoopHandler extends ProtocolNegotiators.AbstractBufferingHandler
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DGoogleDefaultProtocolNegotiator.java23 import io.grpc.netty.ProtocolNegotiators;
33 tlsProtocolNegotiator = ProtocolNegotiators.tls(sslContext); in GoogleDefaultProtocolNegotiator()
DAltsProtocolNegotiator.java33 import io.grpc.netty.ProtocolNegotiators.AbstractBufferingHandler;
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DNettyChannelBuilder.java387 return ProtocolNegotiators.plaintext(); in createProtocolNegotiatorByType()
389 return ProtocolNegotiators.plaintextUpgrade(); in createProtocolNegotiatorByType()
391 return ProtocolNegotiators.tls(sslContext); in createProtocolNegotiatorByType()
564 localNegotiator = ProtocolNegotiators.httpProxy( in create()
DNettyServerBuilder.java428 negotiator = sslContext != null ? ProtocolNegotiators.serverTls(sslContext) : in buildTransportServer()
429 ProtocolNegotiators.serverPlaintext(); in buildTransportServer()
DProtocolNegotiators.java74 public final class ProtocolNegotiators { class
75 private static final Logger log = Logger.getLogger(ProtocolNegotiators.class.getName());
77 private ProtocolNegotiators() { in ProtocolNegotiators() method in ProtocolNegotiators