// Path: java-ca-lib/src/main/java/io/github/olivierlemasle/ca/CA.java
// public static DnBuilder dn() {
//   return new DnBuilderImpl();
// }
// 
// Path: java-ca-lib/src/main/java/io/github/olivierlemasle/ca/DistinguishedName.java
// public interface DistinguishedName {
// 
//   public X500Name getX500Name();
// 
//   public X500Principal getX500Principal();
// 
//   public byte[] getEncoded();
// 
//   public String getName();
// }
// 
// Path: java-ca-lib/src/main/java/io/github/olivierlemasle/ca/DnBuilder.java
// public interface DnBuilder {
// 
//   public DnBuilder setCn(String cn);
// 
//   public DnBuilder setCommonName(String cn);
// 
//   public DnBuilder setL(String l);
// 
//   public DnBuilder setLocalityName(String l);
// 
//   public DnBuilder setSt(String st);
// 
//   public DnBuilder setStateOrProvinceName(String st);
// 
//   public DnBuilder setO(String o);
// 
//   public DnBuilder setOrganizationName(String o);
// 
//   public DnBuilder setOu(String ou);
// 
//   public DnBuilder setOrganizationalUnitName(String ou);
// 
//   public DnBuilder setC(String c);
// 
//   public DnBuilder setCountryName(String c);
// 
//   public DnBuilder setStreet(String street);
// 
//   public DistinguishedName build();
// 
// }


import static io.github.olivierlemasle.ca.CA.dn;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import io.github.olivierlemasle.ca.DistinguishedName;
import io.github.olivierlemasle.ca.DnBuilder;
package io.github.olivierlemasle.caweb.json;





class DnDeserializer extends StdDeserializer<DistinguishedName> {

  private static final long serialVersionUID = 9192735092617403295L;

  public DnDeserializer() {
    super(DistinguishedName.class);
  }

  @Override
// Path: java-ca-lib/src/main/java/io/github/olivierlemasle/ca/CA.java
// public static DnBuilder dn() {
//   return new DnBuilderImpl();
// }
// 
// Path: java-ca-lib/src/main/java/io/github/olivierlemasle/ca/DistinguishedName.java
// public interface DistinguishedName {
// 
//   public X500Name getX500Name();
// 
//   public X500Principal getX500Principal();
// 
//   public byte[] getEncoded();
// 
//   public String getName();
// }
// 
// Path: java-ca-lib/src/main/java/io/github/olivierlemasle/ca/DnBuilder.java
// public interface DnBuilder {
// 
//   public DnBuilder setCn(String cn);
// 
//   public DnBuilder setCommonName(String cn);
// 
//   public DnBuilder setL(String l);
// 
//   public DnBuilder setLocalityName(String l);
// 
//   public DnBuilder setSt(String st);
// 
//   public DnBuilder setStateOrProvinceName(String st);
// 
//   public DnBuilder setO(String o);
// 
//   public DnBuilder setOrganizationName(String o);
// 
//   public DnBuilder setOu(String ou);
// 
//   public DnBuilder setOrganizationalUnitName(String ou);
// 
//   public DnBuilder setC(String c);
// 
//   public DnBuilder setCountryName(String c);
// 
//   public DnBuilder setStreet(String street);
// 
//   public DistinguishedName build();
// 
// }


// Path: ca-api/src/main/java/io/github/olivierlemasle/caweb/json/DnDeserializer.java
import static io.github.olivierlemasle.ca.CA.dn;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import io.github.olivierlemasle.ca.DistinguishedName;
import io.github.olivierlemasle.ca.DnBuilder;

package io.github.olivierlemasle.caweb.json;





class DnDeserializer extends StdDeserializer<DistinguishedName> {

  private static final long serialVersionUID = 9192735092617403295L;

  public DnDeserializer() {
    super(DistinguishedName.class);
  }

  @Override
  public DistinguishedName deserialize(final JsonParser p, final DeserializationContext ctxt) throws IOException {