Search in sources :

Example 1 with Tag

use of org.openecard.common.tlv.Tag in project open-ecard by ecsec.

the class AuthenticatedAuxiliaryData method emptyOrStructure.

private static TLV emptyOrStructure(byte[] data) throws TLVException {
    if (data == null) {
        TLV tlv = new TLV();
        tlv.setTag(new Tag(TagClass.APPLICATION, false, EACTags.AUTHENTIFICATION_DATA));
        return tlv;
    } else {
        return TLV.fromBER(data);
    }
}
Also used : Tag(org.openecard.common.tlv.Tag) TLV(org.openecard.common.tlv.TLV)

Aggregations

TLV (org.openecard.common.tlv.TLV)1 Tag (org.openecard.common.tlv.Tag)1