Package javax.smartcardio

Examples of javax.smartcardio.ATR


    public AnswerToReset(AnswerToReset atr) {
        this.data = new ATR(atr.getData());
    }
   
    public AnswerToReset(byte[] data) {
        this.data = new ATR(data);
    }
View Full Code Here


    public AnswerToReset(byte[] data, int offset, int length) {
        byte[] actualData = new byte[length];
        for (int i = 0; i < length; i++) {
            actualData[i] = data[i + offset];
        }
        this.data = new ATR(actualData);
    }
View Full Code Here

     * Set the value of data
     *
     * @param data new value of data
     */
    public void setData(byte[] data) {
        this.data = new ATR(data);
    }
View Full Code Here

   
    @Override
    public void init(Card card) {
        super.init(card);
       
        ATR atr = card.getATR();
        if (!Arrays.equals(atr.getBytes(), new byte[]{
            (byte) 0x3b,
            (byte) 0xb7,
            (byte) 0x94,
            (byte) 0x00,
            (byte) 0x81,
View Full Code Here

TOP

Related Classes of javax.smartcardio.ATR

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.