io.vertx.ext.auth.oauth2.OAuth2OptionsConverter Maven / Gradle / Ivy
package io.vertx.ext.auth.oauth2;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter and mapper for {@link io.vertx.ext.auth.oauth2.OAuth2Options}.
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.oauth2.OAuth2Options} original class using Vert.x codegen.
*/
public class OAuth2OptionsConverter {
static void fromJson(Iterable> json, OAuth2Options obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "site":
if (member.getValue() instanceof String) {
obj.setSite((String)member.getValue());
}
break;
case "authorizationPath":
if (member.getValue() instanceof String) {
obj.setAuthorizationPath((String)member.getValue());
}
break;
case "tokenPath":
if (member.getValue() instanceof String) {
obj.setTokenPath((String)member.getValue());
}
break;
case "revocationPath":
if (member.getValue() instanceof String) {
obj.setRevocationPath((String)member.getValue());
}
break;
case "clientId":
if (member.getValue() instanceof String) {
obj.setClientId((String)member.getValue());
}
break;
case "clientSecret":
if (member.getValue() instanceof String) {
obj.setClientSecret((String)member.getValue());
}
break;
case "useBasicAuthorization":
if (member.getValue() instanceof Boolean) {
obj.setUseBasicAuthorization((Boolean)member.getValue());
}
break;
case "clientAssertionType":
if (member.getValue() instanceof String) {
obj.setClientAssertionType((String)member.getValue());
}
break;
case "clientAssertion":
if (member.getValue() instanceof String) {
obj.setClientAssertion((String)member.getValue());
}
break;
case "userAgent":
if (member.getValue() instanceof String) {
obj.setUserAgent((String)member.getValue());
}
break;
case "headers":
if (member.getValue() instanceof JsonObject) {
obj.setHeaders(((JsonObject)member.getValue()).copy());
}
break;
case "pubSecKeys":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy