|
34 | 34 | import io.grpc.InsecureChannelCredentials; |
35 | 35 | import io.grpc.ManagedChannel; |
36 | 36 | import io.grpc.TlsChannelCredentials; |
37 | | -import io.grpc.internal.ClientTransportFactory; |
| 37 | +import io.grpc.internal.*; |
38 | 38 | import io.grpc.internal.ClientTransportFactory.SwapChannelCredentialsResult; |
39 | | -import io.grpc.internal.FakeClock; |
40 | | -import io.grpc.internal.GrpcUtil; |
41 | | -import io.grpc.internal.SharedResourceHolder; |
42 | 39 | import io.grpc.testing.GrpcCleanupRule; |
43 | 40 | import io.grpc.testing.TlsTesting; |
44 | 41 | import java.io.InputStream; |
@@ -212,7 +209,7 @@ public void sslSocketFactoryFrom_tls_mtls() throws Exception { |
212 | 209 |
|
213 | 210 | TrustManager[] trustManagers; |
214 | 211 | try (InputStream ca = TlsTesting.loadCert("ca.pem")) { |
215 | | - trustManagers = OkHttpChannelBuilder.createTrustManager(ca); |
| 212 | + trustManagers = CertificateUtils.createTrustManager(ca); |
216 | 213 | } |
217 | 214 |
|
218 | 215 | SSLContext serverContext = SSLContext.getInstance("TLS"); |
@@ -257,7 +254,7 @@ public void sslSocketFactoryFrom_tls_mtls_keyFile() throws Exception { |
257 | 254 | InputStream ca = TlsTesting.loadCert("ca.pem")) { |
258 | 255 | serverContext.init( |
259 | 256 | OkHttpChannelBuilder.createKeyManager(server1Chain, server1Key), |
260 | | - OkHttpChannelBuilder.createTrustManager(ca), |
| 257 | + CertificateUtils.createTrustManager(ca), |
261 | 258 | null); |
262 | 259 | } |
263 | 260 | final SSLServerSocket serverListenSocket = |
|
0 commit comments