Skip to content

coolbong/JavaTlv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaTlv

Java tlv parser

ISO7816 part 4 BER-TLV

Example for parse FCI

    String resp = "6F20840E315041592E5359532E4444463031A50E8801015F2D046B6F656E9F110101";
    Tlv tlv = Tlv.parse(resp);

    assert tlv.getTag() == "6F";
    assert tlv.getLength() == 0x20;

    // find dedicated file name
    Tlv df_name = tlv.find("84");

    // find FCI Proprietary Template
    Tlv fci_prop_template = tlv.find("A5");