// 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();
// }


import java.io.IOException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import io.github.olivierlemasle.ca.DistinguishedName;
package io.github.olivierlemasle.caweb.json;




class DnSerializer extends JsonSerializer<DistinguishedName> {

  @Override
// 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: ca-api/src/main/java/io/github/olivierlemasle/caweb/json/DnSerializer.java
import java.io.IOException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import io.github.olivierlemasle.ca.DistinguishedName;

package io.github.olivierlemasle.caweb.json;




class DnSerializer extends JsonSerializer<DistinguishedName> {

  @Override
  public void serialize(final DistinguishedName dn, final JsonGenerator gen,