@@ -0,0 +1,2670 @@
+/****************************************************************************%0A * Copyright (C) 2014 ecsec GmbH.%0A * All rights reserved.%0A * Contact: ecsec GmbH (info@ecsec.de)%0A * %0A * This file is part of the Open eCard App.%0A * %0A * GNU General Public License Usage%0A * This file may be used under the terms of the GNU General Public%0A * License version 3.0 as published by the Free Software Foundation%0A * and appearing in the file LICENSE.GPL included in the packaging of%0A * this file. Please review the following information to ensure the%0A * GNU General Public License version 3.0 requirements will be met:%0A * http://www.gnu.org/copyleft/gpl.html.%0A * %0A * Other Usage%0A * Alternatively, this file may be used in accordance with the terms%0A * and conditions contained in a signed written agreement between%0A * you and ecsec GmbH.%0A * %0A ***************************************************************************/%0A%0Apackage org.openecard.common.apdu;%0A%0Aimport org.openecard.common.apdu.common.CardCommandAPDU;%0A%0A%0A/**%0A * GET DATA command%0A * See ISO/IEC 7816-4 Section 7.4.2.%0A *%0A * @author Hans-Martin Haase %3Chans-martin.haase@ecsec.de%3E%0A */%0Apublic class GetData extends CardCommandAPDU %7B%0A%0A    /**%0A     * GET DATA instruction byte for the case of a complete file dump or card-originated byte strings.%0A     */%0A    public static byte INS_DATA = (byte) 0xCA;%0A%0A    /**%0A     * GET DATA instruction byte for the request of a tag list data object, header list data object or extended header%0A     * list data object.%0A     */%0A    public static byte INS_TAG_LIST = (byte) 0xCB;%0A%0A    /**%0A     * P1 byte for a Simple-TLV tag in P2.%0A     */%0A    public static byte SIMPLE_TLV = (byte) 0x02;%0A%0A    /**%0A     * P1 byte for a one byte BER-TLV tag in P2.%0A     */%0A    public static byte BER_TLV_ONE_BYTE = (byte) 0x00;%0A%0A    /**%0A     * Creates a new GET DATA command.%0A     * This constructor creates a Get Data command apdu according to ISO 7816-4 section 7.4 Table 62.%3Cbr /%3E%0A     * The class provides two public variables for the instruction byte: %3Cbr /%3E%0A     * INS_DATA = 0xCA %3Cbr /%3E%0A     * INS_TAG_LIST = 0xCB %3Cbr /%3E%3Cbr /%3E%0A     * Furthermore there are two public variables for P1 if P2 encodes a Simple-TLV or an one byte BER-TLV tag:%3Cbr /%3E%0A     * SIMPLE_TLV = 0x02 %3Cbr /%3E%0A     * BER_TLV_ONE_BYTE = 0x00 %3Cbr /%3E %3Cbr /%3E%0A     * %3Cbr /%3E%0A     * APDU: 0x00 INS P1 P2 0XFF%0A     *%0A     * @param ins Instruction byte for the Get Data command. According to ISO 7816-4 section 7.4.2 table 63 this value is%0A     * 0xCA or 0xCB.%0A     * @param p1 see ISO 7816-4 section 7.4.2.%0A     * @param p2 see ISO 7816-4 section 7.4.2.%0A     */%0A    public GetData(byte ins, byte p1, byte p2) %7B%0A%09super(x00, ins, p1, p2, xFF);%0A    %7D%0A%7D%0A

Add GetData APDU