Contactless Interface

JavaCard Applet Development Related Questions and Answers.
Posts: 20
Joined: Fri May 11, 2018 11:29 am
Points :378

Contactless Interface

Post by naresh » Wed Jul 04, 2018 9:59 am

Hello sir,
I want to Know whether my application used "CONTACTLESS INTERFACE" or NOT.


Posts: 63
Joined: Wed Nov 04, 2015 7:23 am
Points :470

Re: Contactless Interface

Post by BirdKing » Wed Jul 04, 2018 10:15 pm

On javacard, the API "APDU.getProtocol()" should help you to find which protocol.

Posts: 35
Joined: Wed Jun 20, 2018 4:06 am
Points :216

Re: Contactless Interface

Post by happy123654 » Thu Jul 05, 2018 4:02 am

static native byte javacard.framework.APDU.getProtocol ( )

Returns the ISO 7816 transport protocol type, T=1 or T=0 in the low nibble and the transport media in the upper nibble in use.
Returnsthe protocol media and type in progress Valid nibble codes are listed in PROTOCOL_* constants above. See PROTOCOL_T0.

public static final byte PROTOCOL_T0 = 0;
public static final byte PROTOCOL_T1 = 1;
public static final byte PROTOCOL_MEDIA_CONTACTLESS_TYPE_A = -128;
public static final byte PROTOCOL_MEDIA_CONTACTLESS_TYPE_B = -112;

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 3 guests

JavaCard OS : Disclaimer