com.arangodb.shaded.vertx.ext.auth.JWTOptionsConverter Maven / Gradle / Ivy
package com.arangodb.shaded.vertx.ext.auth;
import com.arangodb.shaded.vertx.core.json.JsonObject;
import com.arangodb.shaded.vertx.core.json.JsonArray;
import com.arangodb.shaded.vertx.core.json.impl.JsonUtil;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
import java.util.Base64;
/**
* Converter and mapper for {@link com.arangodb.shaded.vertx.ext.auth.JWTOptions}.
* NOTE: This class has been automatically generated from the {@link com.arangodb.shaded.vertx.ext.auth.JWTOptions} original class using Vert.x codegen.
*/
public class JWTOptionsConverter {
private static final Base64.Decoder BASE64_DECODER = JsonUtil.BASE64_DECODER;
private static final Base64.Encoder BASE64_ENCODER = JsonUtil.BASE64_ENCODER;
public static void fromJson(Iterable> json, JWTOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "algorithm":
if (member.getValue() instanceof String) {
obj.setAlgorithm((String)member.getValue());
}
break;
case "audience":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy