< prev index next >

jdk/test/javax/smartcardio/HistoricalBytes.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 6445367
  27  * @summary Verify that ATR.getHistoricalBytes() works
  28  * @author Andreas Sterbenz
  29  * @compile -addmods java.smartcardio HistoricalBytes.java
  30  * @run main/othervm -addmods java.smartcardio HistoricalBytes
  31  */
  32 
  33 import java.util.Arrays;
  34 
  35 import javax.smartcardio.*;
  36 
  37 public class HistoricalBytes {
  38 
  39     public static String toString(byte[] b) {
  40         return Serialize.toString(b);
  41     }
  42 
  43     public static byte[] parse(String s) {
  44         return Serialize.parse(s);
  45     }
  46 
  47     // generated using ATR_analysis from pcsc-tools
  48 
  49     private final static String[] ATRS = {
  50         "3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00",




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 6445367
  27  * @summary Verify that ATR.getHistoricalBytes() works
  28  * @author Andreas Sterbenz
  29  * @compile --add-modules=java.smartcardio HistoricalBytes.java
  30  * @run main/othervm --add-modules=java.smartcardio HistoricalBytes
  31  */
  32 
  33 import java.util.Arrays;
  34 
  35 import javax.smartcardio.*;
  36 
  37 public class HistoricalBytes {
  38 
  39     public static String toString(byte[] b) {
  40         return Serialize.toString(b);
  41     }
  42 
  43     public static byte[] parse(String s) {
  44         return Serialize.parse(s);
  45     }
  46 
  47     // generated using ATR_analysis from pcsc-tools
  48 
  49     private final static String[] ATRS = {
  50         "3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00",


< prev index next >