Skip to content

Commit 63bb429

Browse files
committed
Fix incorrect module name
1 parent 26d0254 commit 63bb429

File tree

6 files changed

+408
-1
lines changed

6 files changed

+408
-1
lines changed

vertx-auth-sql-client/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
module io.vertx.auth.sqlclient {
1212
requires transitive io.vertx.auth.common;
13-
requires transitive io.vertx.client.sql;
13+
requires transitive io.vertx.sql.client;
1414
requires static io.vertx.codegen.api;
1515
requires static io.vertx.codegen.json;
1616
requires static io.vertx.docgen;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package io.vertx.ext.auth.webauthn4j;
2+
3+
import io.vertx.core.json.JsonObject;
4+
import io.vertx.core.json.JsonArray;
5+
import java.time.Instant;
6+
import java.time.format.DateTimeFormatter;
7+
8+
/**
9+
* Converter and mapper for {@link io.vertx.ext.auth.webauthn4j.AttestationCertificates}.
10+
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.webauthn4j.AttestationCertificates} original class using Vert.x codegen.
11+
*/
12+
public class AttestationCertificatesConverter {
13+
14+
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, AttestationCertificates obj) {
15+
for (java.util.Map.Entry<String, Object> member : json) {
16+
switch (member.getKey()) {
17+
case "alg":
18+
if (member.getValue() instanceof String) {
19+
obj.setAlg(io.vertx.ext.auth.webauthn4j.PublicKeyCredential.valueOf((String)member.getValue()));
20+
}
21+
break;
22+
case "x5c":
23+
if (member.getValue() instanceof JsonArray) {
24+
java.util.ArrayList<java.lang.String> list = new java.util.ArrayList<>();
25+
((Iterable<Object>)member.getValue()).forEach( item -> {
26+
if (item instanceof String)
27+
list.add((String)item);
28+
});
29+
obj.setX5c(list);
30+
}
31+
break;
32+
}
33+
}
34+
}
35+
36+
static void toJson(AttestationCertificates obj, JsonObject json) {
37+
toJson(obj, json.getMap());
38+
}
39+
40+
static void toJson(AttestationCertificates obj, java.util.Map<String, Object> json) {
41+
if (obj.getAlg() != null) {
42+
json.put("alg", obj.getAlg().name());
43+
}
44+
if (obj.getX5c() != null) {
45+
JsonArray array = new JsonArray();
46+
obj.getX5c().forEach(item -> array.add(item));
47+
json.put("x5c", array);
48+
}
49+
}
50+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
package io.vertx.ext.auth.webauthn4j;
2+
3+
import io.vertx.core.json.JsonObject;
4+
import io.vertx.core.json.JsonArray;
5+
import java.time.Instant;
6+
import java.time.format.DateTimeFormatter;
7+
8+
/**
9+
* Converter and mapper for {@link io.vertx.ext.auth.webauthn4j.Authenticator}.
10+
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.webauthn4j.Authenticator} original class using Vert.x codegen.
11+
*/
12+
public class AuthenticatorConverter {
13+
14+
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, Authenticator obj) {
15+
for (java.util.Map.Entry<String, Object> member : json) {
16+
switch (member.getKey()) {
17+
case "userName":
18+
if (member.getValue() instanceof String) {
19+
obj.setUserName((String)member.getValue());
20+
}
21+
break;
22+
case "type":
23+
if (member.getValue() instanceof String) {
24+
obj.setType((String)member.getValue());
25+
}
26+
break;
27+
case "credID":
28+
if (member.getValue() instanceof String) {
29+
obj.setCredID((String)member.getValue());
30+
}
31+
break;
32+
case "publicKey":
33+
if (member.getValue() instanceof String) {
34+
obj.setPublicKey((String)member.getValue());
35+
}
36+
break;
37+
case "counter":
38+
if (member.getValue() instanceof Number) {
39+
obj.setCounter(((Number)member.getValue()).longValue());
40+
}
41+
break;
42+
case "attestationCertificates":
43+
if (member.getValue() instanceof JsonObject) {
44+
obj.setAttestationCertificates(new io.vertx.ext.auth.webauthn4j.AttestationCertificates((io.vertx.core.json.JsonObject)member.getValue()));
45+
}
46+
break;
47+
case "flags":
48+
if (member.getValue() instanceof Number) {
49+
obj.setFlags(((Number)member.getValue()).intValue());
50+
}
51+
break;
52+
case "fmt":
53+
if (member.getValue() instanceof String) {
54+
obj.setFmt((String)member.getValue());
55+
}
56+
break;
57+
case "aaguid":
58+
if (member.getValue() instanceof String) {
59+
obj.setAaguid((String)member.getValue());
60+
}
61+
break;
62+
}
63+
}
64+
}
65+
66+
static void toJson(Authenticator obj, JsonObject json) {
67+
toJson(obj, json.getMap());
68+
}
69+
70+
static void toJson(Authenticator obj, java.util.Map<String, Object> json) {
71+
if (obj.getUserName() != null) {
72+
json.put("userName", obj.getUserName());
73+
}
74+
if (obj.getType() != null) {
75+
json.put("type", obj.getType());
76+
}
77+
if (obj.getCredID() != null) {
78+
json.put("credID", obj.getCredID());
79+
}
80+
if (obj.getPublicKey() != null) {
81+
json.put("publicKey", obj.getPublicKey());
82+
}
83+
json.put("counter", obj.getCounter());
84+
if (obj.getAttestationCertificates() != null) {
85+
json.put("attestationCertificates", obj.getAttestationCertificates().toJson());
86+
}
87+
json.put("flags", obj.getFlags());
88+
if (obj.getFmt() != null) {
89+
json.put("fmt", obj.getFmt());
90+
}
91+
if (obj.getAaguid() != null) {
92+
json.put("aaguid", obj.getAaguid());
93+
}
94+
}
95+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package io.vertx.ext.auth.webauthn4j;
2+
3+
import io.vertx.core.json.JsonObject;
4+
import io.vertx.core.json.JsonArray;
5+
import java.time.Instant;
6+
import java.time.format.DateTimeFormatter;
7+
8+
/**
9+
* Converter and mapper for {@link io.vertx.ext.auth.webauthn4j.RelyingParty}.
10+
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.webauthn4j.RelyingParty} original class using Vert.x codegen.
11+
*/
12+
public class RelyingPartyConverter {
13+
14+
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, RelyingParty obj) {
15+
for (java.util.Map.Entry<String, Object> member : json) {
16+
switch (member.getKey()) {
17+
case "id":
18+
if (member.getValue() instanceof String) {
19+
obj.setId((String)member.getValue());
20+
}
21+
break;
22+
case "name":
23+
if (member.getValue() instanceof String) {
24+
obj.setName((String)member.getValue());
25+
}
26+
break;
27+
}
28+
}
29+
}
30+
31+
static void toJson(RelyingParty obj, JsonObject json) {
32+
toJson(obj, json.getMap());
33+
}
34+
35+
static void toJson(RelyingParty obj, java.util.Map<String, Object> json) {
36+
if (obj.getId() != null) {
37+
json.put("id", obj.getId());
38+
}
39+
if (obj.getName() != null) {
40+
json.put("name", obj.getName());
41+
}
42+
}
43+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
package io.vertx.ext.auth.webauthn4j;
2+
3+
import io.vertx.core.json.JsonObject;
4+
import io.vertx.core.json.JsonArray;
5+
import java.time.Instant;
6+
import java.time.format.DateTimeFormatter;
7+
8+
/**
9+
* Converter and mapper for {@link io.vertx.ext.auth.webauthn4j.WebAuthn4JCredentials}.
10+
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.webauthn4j.WebAuthn4JCredentials} original class using Vert.x codegen.
11+
*/
12+
public class WebAuthn4JCredentialsConverter {
13+
14+
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, WebAuthn4JCredentials obj) {
15+
for (java.util.Map.Entry<String, Object> member : json) {
16+
switch (member.getKey()) {
17+
case "challenge":
18+
if (member.getValue() instanceof String) {
19+
obj.setChallenge((String)member.getValue());
20+
}
21+
break;
22+
case "webauthn":
23+
if (member.getValue() instanceof JsonObject) {
24+
obj.setWebauthn(((JsonObject)member.getValue()).copy());
25+
}
26+
break;
27+
case "username":
28+
if (member.getValue() instanceof String) {
29+
obj.setUsername((String)member.getValue());
30+
}
31+
break;
32+
case "origin":
33+
if (member.getValue() instanceof String) {
34+
obj.setOrigin((String)member.getValue());
35+
}
36+
break;
37+
case "domain":
38+
if (member.getValue() instanceof String) {
39+
obj.setDomain((String)member.getValue());
40+
}
41+
break;
42+
}
43+
}
44+
}
45+
46+
static void toJson(WebAuthn4JCredentials obj, JsonObject json) {
47+
toJson(obj, json.getMap());
48+
}
49+
50+
static void toJson(WebAuthn4JCredentials obj, java.util.Map<String, Object> json) {
51+
if (obj.getChallenge() != null) {
52+
json.put("challenge", obj.getChallenge());
53+
}
54+
if (obj.getWebauthn() != null) {
55+
json.put("webauthn", obj.getWebauthn());
56+
}
57+
if (obj.getUsername() != null) {
58+
json.put("username", obj.getUsername());
59+
}
60+
if (obj.getOrigin() != null) {
61+
json.put("origin", obj.getOrigin());
62+
}
63+
if (obj.getDomain() != null) {
64+
json.put("domain", obj.getDomain());
65+
}
66+
}
67+
}

0 commit comments

Comments
 (0)