class DN implements DEREncoder {

  @Override
  public byte[] encode()
  {
    final List<DEREncoder> typeEncoders = new ArrayList<>();
    for (final RDN rdn : rdns) {
      typeEncoders.add(rdn::encode);
    }

    final ConstructedDEREncoder se = new ConstructedDEREncoder(
      UniversalDERTag.SEQ,
      typeEncoders.toArray(new DEREncoder[0]));
    return se.encode();
  }

  public  DN(final Collection<RDN> names);
  public  DN(final RDN... names);

}