DN implements DEREncoder { public static DN decode(final DERBuffer encoded) { return new DN(RDN.decode(encoded)); } DN(final Collection<RDN> names);  DN(final RDN... names); RDN[] getRDNs(); @Override byte[] encode(); static DN decode(final DERBuffer encoded); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test(groups = "asn1", dataProvider = "dns") public void decode(final byte[] bytes, final DN expected) throws Exception { Assert.assertEquals(DN.decode(new DefaultDERBuffer(bytes)), expected); }