|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.core.service.CardServiceFactory
de.cardcontact.opencard.factory.IsoCardServiceFactory
public class IsoCardServiceFactory
Constructor Summary | |
---|---|
IsoCardServiceFactory()
Creates new IsoCardServiceFactory |
Method Summary | |
---|---|
protected CardType |
getCardType(CardID cid,
CardServiceScheduler scheduler)
Indicate whether this CardServiceFactory "knows" the smart card OS and/or installed card applications and might be able to instantiate CardServices for it. |
protected java.util.Enumeration |
getClasses(CardType type)
Return an enumeration of known CardService classes. |
Methods inherited from class opencard.core.service.CardServiceFactory |
---|
getCardServiceInstance, getClassFor, newCardServiceInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsoCardServiceFactory()
Method Detail |
---|
protected CardType getCardType(CardID cid, CardServiceScheduler scheduler) throws CardTerminalException
CardServiceFactory
This method replaces the former knows() method. Note: OCF 1.1 style card service factories should instead derive from opencard.opt.service.OCF11CardServiceFactory which still offers the knows() and cardServiceClasses() methods.
Should return a CardType that contains enough information to answer the getClassFor() method.
The factory can inspect the card (communicate with the card) using the provided CardServiceScheduler if the CardID information is insufficient to classify the card.
getCardType
in class CardServiceFactory
cid
- A CardID received from a Slot.scheduler
- A CardServiceScheduler that can be used to communicate with
the card to determine its type.
CardTerminalException
protected java.util.Enumeration getClasses(CardType type)
CardServiceFactory
Replaces the former cardServiceClasses() method. Note: OCF 1.1 style card service factories should instead derive from opencard.opt.service.OCF11CardServiceFactory which still offers the knows() and cardServiceClasses() methods.
getClasses
in class CardServiceFactory
type
- The CardType of the smart card for which
the enumeration is requested.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |