Page 1 of 1

Disable the contactless interface of the card

Posted: Sat Mar 19, 2016 5:42 am
by shyjarod
I have an applet which doesn't work on contactless interface. So my question is if there is any method to disable the contactless interface of the card. If someone can give me any help, I would be much appreciated!

Re: Disable the contactless interface of the card

Posted: Mon Mar 21, 2016 1:28 am
by mabel
shyjarod wrote:I have an applet which doesn't work on contactless interface. So my question is if there is any method to disable the contactless interface of the card. If someone can give me any help, I would be much appreciated!


Use this method to prevent selection on a given interface.

Code: Select all

public boolean select() 
{
    return canBeSelected;
}

Re: Disable the contactless interface of the card

Posted: Mon Mar 21, 2016 2:20 am
by marjkbadboy
Let the applet filter C-APDUs depending on their protocol: refer to the JavaCard API for APDU.getProtocol().