I\'m new to Java, so I would like to use the standard solution for, I think, the standard task. The length of tags and values are not known.
I found Javacard classes for BER TLV. Hope those help