|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opencard.core.service.CardService | +--com.dalsemi.onewire.jib.service.JiBAppletAccessCardService
The JiBAppletAccessCardService
class implements
calls for accessing card-resident applets.
This set of methods supports access to an applet directory and
retrieves information like a list of applets, security domain,
label, etc.. This information is returned in an AppletInfo
object.
This interface is typically implemented for card technology handling multi-application management different (e.g. EMV compliant cards, JavaCards, ...)
JiBAppletManagerCardService
,
JiBCardServiceFactory
Constructor Summary | |
JiBAppletAccessCardService()
|
Method Summary | |
boolean |
exists(opencard.opt.applet.AppletID appletIdentifier)
Check whether the card-resident applet with the specified AppletID exists on the card. |
opencard.opt.applet.AppletInfo |
getInfo(opencard.opt.applet.AppletID appletIdentifier)
Reads the AppletInfo of a given applet ID from
the card's list of applets. |
opencard.opt.applet.AppletInfo[] |
list()
List the available card-resident applets on the smart card. |
void |
setCHVDialog(opencard.core.service.CHVDialog dialog)
Provides an application-specific dialog for CHV input. |
Methods inherited from class opencard.core.service.CardService |
getCard, getCardChannel, getCHVDialog, setCardChannel |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface opencard.opt.service.CardServiceInterface |
getCard |
Constructor Detail |
public JiBAppletAccessCardService()
Method Detail |
public opencard.opt.applet.AppletInfo[] list() throws opencard.core.service.CardServiceException, opencard.core.terminal.CardTerminalException
list
in interface opencard.opt.applet.mgmt.AppletAccessCardService
AppletInfo
s of the
card-resident applets.opencard.core.service.CardServiceException
- Thrown when error occurs during execution of the operation.public boolean exists(opencard.opt.applet.AppletID appletIdentifier) throws opencard.core.service.CardServiceException, opencard.core.terminal.CardTerminalException
Check whether the card-resident applet with the specified
AppletID
exists on the card.
On the Java Powered iButton, this is a very inefficient
operation. To check if the applet exists, it should not be selected,
because this changes the behaviour of the iButton (the newly
selected applet recieves all APDU's). This implementation, then,
makes a list of all available applet IDs and checks to see if any
of them equals appletIdentifier
.
exists
in interface opencard.opt.applet.mgmt.AppletAccessCardService
applet
- identifier
The AppletID
object referring to the applet
whose existence we want to check.true
if card-resident applet exists, otherwise
return false
.opencard.core.service.CardServiceException
- Thrown when error occurs during execution of the operation.public opencard.opt.applet.AppletInfo getInfo(opencard.opt.applet.AppletID appletIdentifier) throws opencard.core.service.CardServiceException, opencard.core.terminal.CardTerminalException
AppletInfo
of a given applet ID from
the card's list of applets.
getInfo
in interface opencard.opt.applet.mgmt.AppletAccessCardService
appletIdentifier
- The AppletID
object referring to the applet
whose info we want to read.AppletInfo
of the applets.
If no applet info was found for the given AppletID
a null
is returnedopencard.core.service.CardServiceException
- Thrown when error occurs during execution of the operation.public void setCHVDialog(opencard.core.service.CHVDialog dialog)
Provides an application-specific dialog for CHV input. If an application does not set it's own dialog, a default dialog will be used if password input is required.
NOTE: This method is not implemented in the
JiBAppletAccessCardService
class.setCHVDialog
in interface opencard.opt.service.CardServiceInterface
setCHVDialog
in class opencard.core.service.CardService
dialog
- the dialog to use for querying a password or PIN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |