|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opencard.core.service.CardService | +--opencard.opt.applet.mgmt.AbstractAppletAccessor
The AbstractAppletAccessor is an abstract class providing card type independent base functionality for implementations of an AppletAccessCardService. It is however an adapter in the sense that it implements a part of the AppletAccessCardService> interface and provide the following implementations which can be useful for concrete implementations of the AppletAccessCardService interface:
Constructor Summary | |
AbstractAppletAccessor()
Instantiate a AbstractAppletAccessor object. |
Method Summary | |
boolean |
exists(AppletID appletIdentifier)
Check whether the card-resident applets with the specified AppletID exists on the card. |
java.util.Vector |
getApplets()
|
protected AppletSelector |
getAppletSelector()
Get the applet selector. |
AppletInfo |
getInfo(AppletID aid)
Reads the AppletInfo from the directory on the card. |
protected abstract java.util.Vector |
internalList(opencard.core.terminal.SlotChannel channel)
List the applets info informations. This ABSTRACT method has to be implemented by card standard specific subclasses. Subclasses will need to call this method and then setApplets in order to initialize the applets attribute. |
AppletInfo[] |
list()
List the available card-resident applets as array. |
AppletInfo |
selectApplet(opencard.core.service.CardChannel channel,
AppletID appletID)
Selects the card applet with the given application ID using the given channel for communication with the card. |
void |
setApplets(java.util.Vector apps)
|
protected void |
setAppletSelector(AppletSelector s)
Set the applet selector. Subclasses may need to redefine the way applet selection is performed. |
Methods inherited from class opencard.core.service.CardService |
allocateCardChannel,
getCard,
getCardChannel,
getCHVDialog,
initialize,
releaseCardChannel,
setCardChannel,
setCHVDialog |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AbstractAppletAccessor() throws opencard.core.service.CardServiceException
Method Detail |
public java.util.Vector getApplets()
public void setApplets(java.util.Vector apps)
protected void setAppletSelector(AppletSelector s)
Subclasses may need to redefine the way applet selection is performed. They can do that by specifying a class implementing "AppletSelector" and call setAppletSelector with a new helper object that will be used in place of the default ISO implementation.
protected AppletSelector getAppletSelector()
public AppletInfo selectApplet(opencard.core.service.CardChannel channel, AppletID appletID) throws opencard.core.service.CardServiceException, opencard.core.terminal.CardTerminalException
channel
- The CardChannel to be used for sending
the select command to the card.appletID
- The application identifier of the applet to be selected.protected abstract java.util.Vector internalList(opencard.core.terminal.SlotChannel channel) throws opencard.core.service.CardServiceException
This ABSTRACT method has to be implemented by card standard specific subclasses.
Subclasses will need to call this method and then setApplets in order to initialize the applets attribute.
public AppletInfo[] list() throws opencard.core.service.CardServiceException
public AppletInfo getInfo(AppletID aid) throws opencard.core.service.CardServiceException
appletIdentifier
- The AppletID object referring to the applets
whose Info we want to read.public boolean exists(AppletID appletIdentifier) throws opencard.core.service.CardServiceException
appletIdentifier
- The AppletID object referring to the applet
whose existence we want to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |