'6985 Conditions of use not satisfied' while sending APDU command to javacard

蓝咒 提交于 2020-04-16 04:26:11

问题


I'm sending below command to javacard but I'm getting this error

Env: android app running on galaxy s3 over nfc

6985 Conditions of use not satisfied

It would be nice if you let me know what would be cause of this error.

byte[] APDU_Command = new byte[]{

                (byte)0x80,//CLA
                (byte)0xD0,//INS
                (byte)0x01,//P1
                (byte)0x00,//P2

                //Length
                (byte)0x21,//Lc

                //id
                (byte)31,
                (byte)32,
                (byte)33,
                (byte)34,

                //number
                (byte)33,                   
                (byte)35,
                (byte)31,
                (byte)36,
                (byte)39,                   
                (byte)38,
                (byte)30,    
                (byte)35,
                (byte)37,
                (byte)37,
                (byte)34,
                (byte)30,
                (byte)31,
                (byte)37,
                (byte)33,

                //Name
                (byte)50,
                (byte)72,
                (byte)65,
                (byte)76,
                (byte)61,
                (byte)73,
                (byte)54,
                (byte)65,
                (byte)73,
                (byte)74,
                (byte)43,
                (byte)61,
                (byte)72,
                (byte)64 

        };

Thanks in advance,

来源:https://stackoverflow.com/questions/14977039/6985-conditions-of-use-not-satisfied-while-sending-apdu-command-to-javacard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!