|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.core.service.CardService
opencard.opt.applet.BasicAppletCardService
opencard.opt.applet.AppletProxy
public abstract class AppletProxy
AppletProxy is the base class for all applet proxies. This class is derived from the class BasicAppletCardService. It adds an attribute that holds the application identifier of the applet to which the applet proxy is associated. It provides methods similar to those of the base class, except that the application identifier parameter is not necessary because every AppletProxy knows the AID of the applet associated with it.
Constructor Summary | |
---|---|
AppletProxy()
|
Method Summary | |
---|---|
AppletID |
getAppletID()
Gets the application identifier of the applet to which this proxy belongs. |
protected void |
initialize(AppletID appletID,
CardServiceScheduler scheduler,
SmartCard card,
boolean blocking)
Instantiate an AppletProxy and associates it with the card applet with the given application identifier. |
protected ResponseAPDU |
sendCommandAPDU(CardChannel channel,
CommandAPDU commandAPDU)
Sends an APDU to the applet to which this proxy belongs, using the given channel. |
ResponseAPDU |
sendCommandAPDU(CommandAPDU commandAPDU)
Sends an APDU to the applet to which this proxy belongs. |
protected ResponseAPDU |
sendVerifiedAPDU(CardChannel channel,
CommandAPDU verificationAPDU,
CHVControl chvControl,
int timeout)
Send a verify CHV command APDU to the card after filling in the password obtained from the CHV dialog currently associated with this card service. |
Methods inherited from class opencard.opt.applet.BasicAppletCardService |
---|
getAppletSelector, getCardState, initialize, sendCommandAPDU, sendCommandAPDU, sendVerifiedAPDU, setAppletSelector |
Methods inherited from class opencard.core.service.CardService |
---|
allocateCardChannel, getCard, getCardChannel, getCHVDialog, releaseCardChannel, setCardChannel, setCHVDialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppletProxy()
Method Detail |
---|
public AppletID getAppletID()
protected void initialize(AppletID appletID, CardServiceScheduler scheduler, SmartCard card, boolean blocking) throws CardServiceException
appletID
- The application identifier of the applet to be
associated with the new AppletProxy.scheduler
- The scheduler of this CardService.card
- The controlling SmartCard object.blocking
- Specify the wait behavior for obtaining a
CardChannel from the CardServiceScheduler.
CardServiceException
protected ResponseAPDU sendCommandAPDU(CardChannel channel, CommandAPDU commandAPDU) throws CardTerminalException, CardServiceException
channel
- The CardChannel to be used for sending the
command APDU to the card.commandAPDU
- The CommandAPDU to be sent.
CardTerminalException
CardServiceException
public ResponseAPDU sendCommandAPDU(CommandAPDU commandAPDU) throws CardTerminalException, CardServiceException
commandAPDU
- The CommandAPDU to be sent to the applet
CardTerminalException
CardServiceException
protected ResponseAPDU sendVerifiedAPDU(CardChannel channel, CommandAPDU verificationAPDU, CHVControl chvControl, int timeout) throws CardServiceException, CardTerminalException
channel
- The CardChannel to be used
for sending the command APDU.verificationAPDU
- The command APDU for password verification
into which the password shall be inserted.chvControl
- The CHV control to be used for password input.timeout
- The timeout to be used.
CardServiceException
CardTerminalException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |