File tree Expand file tree Collapse file tree
pqc-test/pqc-test-common/src/main/java/com/google/api/gax/pqc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import com .sun .net .httpserver .HttpsServer ;
3535import io .grpc .Server ;
3636import io .grpc .netty .NettyServerBuilder ;
37+ import io .netty .handler .ssl .OpenSslContextOption ;
3738import java .io .InputStream ;
3839import java .io .OutputStream ;
3940import java .net .InetSocketAddress ;
@@ -174,15 +175,15 @@ public void configure(HttpsParameters params) {
174175 // 12. Initialize netty SSL Context builder to establish gRPC server channel secure layers.
175176 // Bind the builder explicitly to Bouncy Castle JSSE provider context.
176177 io .netty .handler .ssl .SslContextBuilder nettySslContextBuilder =
177- io .netty .handler .ssl .SslContextBuilder .forServer (kmf ). sslContextProvider ( bcProvider );
178+ io .netty .handler .ssl .SslContextBuilder .forServer (kmf );
178179
179180 // 14. Finalize compiling standard Netty SSL configurations.
180181 // Force Netty to execute handshakes utilizing the standard JRE (JDK) SSL Provider
181182 // so Bouncy Castle JJSSE (registered in the provider context) manages the secure pipelines.
182183 io .netty .handler .ssl .SslContext nettySslContext =
183184 io .grpc .netty .GrpcSslContexts .configure (
184185 nettySslContextBuilder , io .netty .handler .ssl .SslProvider .JDK )
185- . protocols ( "TLSv1.3" ) // Force TLSv1.3 protocols
186+ . option ( OpenSslContextOption . GROUPS , new String [] { "X25519MLKEM768" })
186187 .build ();
187188
188189 // 15. Build a raw gRPC method descriptor to mock a unary SayHello endpoint.
You can’t perform that action at this time.
0 commit comments