Skip to content

Commit

Permalink
Regenerate converters
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Oct 7, 2024
1 parent 6267f6d commit 54b4d6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, MySQLAu
break;
case "serverRsaPublicKeyValue":
if (member.getValue() instanceof String) {
obj.setServerRsaPublicKeyValue(io.vertx.core.buffer.Buffer.buffer(BASE64_DECODER.decode((String)member.getValue())));
obj.setServerRsaPublicKeyValue(io.vertx.core.buffer.Buffer.fromJson((String)member.getValue()));
}
break;
}
Expand Down Expand Up @@ -96,7 +96,7 @@ static void toJson(MySQLAuthOptions obj, java.util.Map<String, Object> json) {
json.put("serverRsaPublicKeyPath", obj.getServerRsaPublicKeyPath());
}
if (obj.getServerRsaPublicKeyValue() != null) {
json.put("serverRsaPublicKeyValue", BASE64_ENCODER.encodeToString(obj.getServerRsaPublicKeyValue().getBytes()));
json.put("serverRsaPublicKeyValue", obj.getServerRsaPublicKeyValue().toJson());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, MySQLCo
break;
case "serverRsaPublicKeyValue":
if (member.getValue() instanceof String) {
obj.setServerRsaPublicKeyValue(io.vertx.core.buffer.Buffer.buffer(BASE64_DECODER.decode((String)member.getValue())));
obj.setServerRsaPublicKeyValue(io.vertx.core.buffer.Buffer.fromJson((String)member.getValue()));
}
break;
case "pipeliningLimit":
Expand Down Expand Up @@ -92,7 +92,7 @@ static void toJson(MySQLConnectOptions obj, java.util.Map<String, Object> json)
json.put("serverRsaPublicKeyPath", obj.getServerRsaPublicKeyPath());
}
if (obj.getServerRsaPublicKeyValue() != null) {
json.put("serverRsaPublicKeyValue", BASE64_ENCODER.encodeToString(obj.getServerRsaPublicKeyValue().getBytes()));
json.put("serverRsaPublicKeyValue", obj.getServerRsaPublicKeyValue().toJson());
}
json.put("pipeliningLimit", obj.getPipeliningLimit());
}
Expand Down

0 comments on commit 54b4d6f

Please sign in to comment.