io.vertx.ext.mail.DKIMSignOptionsConverter Maven / Gradle / Ivy
package io.vertx.ext.mail;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.impl.JsonUtil;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
import java.util.Base64;
/**
* Converter and mapper for {@link io.vertx.ext.mail.DKIMSignOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.mail.DKIMSignOptions} original class using Vert.x codegen.
*/
public class DKIMSignOptionsConverter {
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, DKIMSignOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "auid":
if (member.getValue() instanceof String) {
obj.setAuid((String)member.getValue());
}
break;
case "bodyCanonAlgo":
if (member.getValue() instanceof String) {
obj.setBodyCanonAlgo(io.vertx.ext.mail.CanonicalizationAlgorithm.valueOf((String)member.getValue()));
}
break;
case "bodyLimit":
if (member.getValue() instanceof Number) {
obj.setBodyLimit(((Number)member.getValue()).intValue());
}
break;
case "copiedHeaders":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy