List of usage examples for javax.smartcardio ATR ATR
public ATR(byte[] atr)
From source file:test.integ.be.fedict.commons.eid.client.simulation.SimulatedBeIDCard.java
public SimulatedBeIDCard(final String profile) { super(null);/*from www.ja va 2 s. c o m*/ final InputStream atrInputStream = SimulatedBeIDCard.class.getResourceAsStream("/" + profile + "_ATR.bin"); try { setATR(new ATR(IOUtils.toByteArray(atrInputStream))); } catch (final IOException ioex) { // missing _ATR file, set ATR from testcard setATR(new ATR(new byte[] { 0x3b, (byte) 0x98, 0x13, 0x40, 0x0a, (byte) 0xa5, 0x03, 0x01, 0x01, 0x01, (byte) 0xad, 0x13, 0x11 })); } setFilesFromProfile(profile); }