/** * Converts bytes in the buffer to a DN by reading from the current position to the limit. * * @param encoded buffer containing DER-encoded data where the buffer is positioned at the tag of the DN and the * limit is set beyond the last byte of DN data. * * @return decoded bytes as a DN */ public static DN decode(final ByteBuffer encoded) { return new DN(RDN.decode(encoded)); }
/** * Converts bytes in the buffer to a DN by reading from the current position to the limit. * * @param encoded buffer containing DER-encoded data where the buffer is positioned at the tag of the DN and the * limit is set beyond the last byte of DN data. * * @return decoded bytes as a DN */ public static DN decode(final ByteBuffer encoded) { return new DN(RDN.decode(encoded)); }
/** * Converts bytes in the buffer to a DN by reading from the current position to the limit. * * @param encoded buffer containing DER-encoded data where the buffer is positioned at the tag of the DN and the * limit is set beyond the last byte of DN data. * * @return decoded bytes as a DN */ public static DN decode(final ByteBuffer encoded) { return new DN(RDN.decode(encoded)); }