Javacard Shareable Interface: lookupAID returns AID but getAppletShareableInterface returns null

后端 未结 1 1251
孤街浪徒
孤街浪徒 2021-01-21 21:22

edit 2: Found the mistake. I tried to initialize the Shareable object in the constructor. At that time the client\'s register method is not yet called, so the JCRE doesn\'t have

1条回答
  •  星月不相逢
    2021-01-21 21:42

    Found the mistake. I tried to initialize the Shareable object in the constructor. At that time the client's register method is not yet called, so the JCRE doesn't have its AID. While my server's getShareableInterfaceObject(AID clientaid, byte parameter) method doesn't require the client's AID to be != null the JCRE probably does, since it calls this method for my client. I now initialize my Shareable object when I process my first APDU and it now works.

    0 讨论(0)
提交回复
热议问题