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);
}
}