@Test public void tls_host() throws SSLException { SslContext ctx = GrpcSslContexts.forClient().build(); TlsNegotiator negotiator = (TlsNegotiator) ProtocolNegotiators.tls(ctx); HostPort hostPort = negotiator.parseAuthority("[::1]"); assertEquals("[::1]", hostPort.host); assertEquals(-1, hostPort.port); }
public static ProtocolNegotiator tls(SslContext sslContext) { return new TlsNegotiator(sslContext); }
ProtocolNegotiators { public static ProtocolNegotiator tls(SslContext sslContext) { return new TlsNegotiator(sslContext); } }
ProtocolNegotiators { public static ProtocolNegotiator tls(SslContext sslContext) { return new TlsNegotiator(sslContext); } private  ProtocolNegotiators(); }
ProtocolNegotiators { public static ProtocolNegotiator tls(SslContext sslContext) { return new TlsNegotiator(sslContext); } private  ProtocolNegotiators(); static ProtocolNegotiator serverPlaintext(); static ProtocolNegotiator serverTls(final SslContext sslContext); static ProtocolNegotiator httpProxy(final SocketAddress proxyAddress,
      final @Nullable String proxyUsername, final @Nullable String proxyPassword,
      final ProtocolNegotiator negotiator); static ProtocolNegotiator tls(SslContext sslContext); static ProtocolNegotiator plaintextUpgrade(); static ProtocolNegotiator plaintext(); }
ProtocolNegotiators { public static ProtocolNegotiator tls(SslContext sslContext) { return new TlsNegotiator(sslContext); } private  ProtocolNegotiators(); static ProtocolNegotiator serverPlaintext(); static ProtocolNegotiator serverTls(final SslContext sslContext); static ProtocolNegotiator httpProxy(final SocketAddress proxyAddress,
      final @Nullable String proxyUsername, final @Nullable String proxyPassword,
      final ProtocolNegotiator negotiator); static ProtocolNegotiator tls(SslContext sslContext); static ProtocolNegotiator plaintextUpgrade(); static ProtocolNegotiator plaintext();  }