Page 1 of 1

JavaCard Secure Object Sharing

Posted: Sat Jan 23, 2016 4:52 am
by Asineshjil
I am running into a problem about passing object as parameter between server and client applet.
The client applet will pass a key to server applet for authentication purpose. I wonder if is there any security issues using the global apdu buffer?

Re: JavaCard Secure Object Sharing

Posted: Tue Jan 26, 2016 2:00 am
by Tarantino
If client applet and server applet belong to the same package, they can "share" an object or array via a class variable, because they belong to the same context.

Otherwise, using javacard.framework.Shareable you can provide methods for transferring the data.

Copy the contents of your object to the global apdu buffer, and then pass this between your server and client applets. By the way, I don't think there are any security issues using the global APDU buffer.