Skip to content

Commit

Permalink
Adapt to latest vertx-core changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Nov 17, 2023
1 parent 25a0d4e commit 9ee15db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions vertx-grpc/src/main/java/examples/Examples.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void sslServer(Vertx vertx) {
.useSsl(options -> options
.setSsl(true)
.setUseAlpn(true)
.setKeyStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("server-keystore.jks")
.setPassword("secret")));
}
Expand Down Expand Up @@ -206,7 +206,7 @@ public void sslClient(Vertx vertx) {
.useSsl(options -> options
.setSsl(true)
.setUseAlpn(true)
.setTrustStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("client-truststore.jks")
.setPassword("secret")))
.build();
Expand Down
16 changes: 8 additions & 8 deletions vertx-grpc/src/test/java/io/vertx/ext/grpc/SslTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public class SslTest extends GrpcTestBase {
public void testConnect(TestContext ctx) throws Exception {
testSimple(options -> options.setSsl(true)
.setUseAlpn(true)
.setTrustStoreOptions(new JksOptions()
.setTrustOptions(new JksOptions()
.setPath("tls/client-truststore.jks")
.setPassword("wibble")), options ->
options
.setSsl(true)
.setUseAlpn(true)
.setKeyStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("tls/server-keystore.jks")
.setPassword("wibble")), ctx, true);
}
Expand All @@ -48,7 +48,7 @@ public void testTrustAll(TestContext ctx) throws Exception {
options
.setSsl(true)
.setUseAlpn(true)
.setKeyStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("tls/server-keystore.jks")
.setPassword("wibble")), ctx, true);
}
Expand All @@ -59,18 +59,18 @@ public void testClientAuth(TestContext ctx) throws Exception {
.setTrustAll(true)
.setSsl(true)
.setUseAlpn(true)
.setKeyStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("tls/server-keystore.jks")
.setPassword("wibble"))
, options ->
options
.setSsl(true)
.setUseAlpn(true)
.setKeyStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("tls/server-keystore.jks")
.setPassword("wibble"))
.setClientAuth(ClientAuth.REQUIRED)
.setTrustStoreOptions(new JksOptions()
.setTrustOptions(new JksOptions()
.setPath("tls/client-truststore.jks")
.setPassword("wibble")), ctx, true);
}
Expand All @@ -84,11 +84,11 @@ public void testClientAuthFail(TestContext ctx) throws Exception {
options
.setSsl(true)
.setUseAlpn(true)
.setKeyStoreOptions(new JksOptions()
.setKeyCertOptions(new JksOptions()
.setPath("tls/server-keystore.jks")
.setPassword("wibble"))
.setClientAuth(ClientAuth.REQUIRED)
.setTrustStoreOptions(new JksOptions()
.setTrustOptions(new JksOptions()
.setPath("tls/client-truststore.jks")
.setPassword("wibble")), ctx, false);
}
Expand Down

0 comments on commit 9ee15db

Please sign in to comment.