|
|||||||||
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.mgmt.AbstractAppletAccessor
public abstract class 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(SlotChannel channel)
List the applets info informations. |
AppletInfo[] |
list()
List the available card-resident applets as array. |
AppletInfo |
selectApplet(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. |
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 |
Methods inherited from interface opencard.opt.service.CardServiceInterface |
---|
getCard, setCHVDialog |
Constructor Detail |
---|
public AbstractAppletAccessor() throws CardServiceException
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(CardChannel channel, AppletID appletID) throws CardServiceException, CardTerminalException
selectApplet
in interface AppletSelector
channel
- The CardChannel to be used for sending
the select command to the card.appletID
- The application identifier of the applet to be selected.
CardServiceException
- Thrown when error occurs during execution of the operation.
CardTerminalException
- Thrown when error occurs during the communication.protected abstract java.util.Vector internalList(SlotChannel channel) throws 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.
CardServiceException
- Thrown when the list cannot be presented.public AppletInfo[] list() throws CardServiceException
list
in interface AppletAccessCardService
CardServiceException
- Thrown when the list cannot be presented.public AppletInfo getInfo(AppletID aid) throws CardServiceException
getInfo
in interface AppletAccessCardService
aid
- The AppletID object referring to the applets
whose Info we want to read.
CardServiceException
- Thrown when error occurs during execution of the operation.public boolean exists(AppletID appletIdentifier) throws CardServiceException
exists
in interface AppletAccessCardService
appletIdentifier
- The AppletID object referring to the applet
whose existence we want to check.
CardServiceException
- Thrown when error occurs during execution of the operation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |