com.ibm.opencard.factory
Class MFCCardServiceFactoryER
java.lang.Object
|
+--opencard.core.service.CardServiceFactory
|
+--com.ibm.opencard.service.IBMCardServiceFactory
|
+--com.ibm.opencard.factory.MFCCardServiceFactoryER
- public class MFCCardServiceFactoryER
- extends IBMCardServiceFactory
Export restricted (ER) version of factory for MFC card services.
MFCCardServiceFactory can only instantiate exportable card services.
This factory in addition can instantiate the
- MFCKeyImportService
- MFCKeyGeenService
which can not be exported outside the U.S. due to U.S Export Regulations.
- Version:
- $Id: MFCCardServiceFactoryER.java,v 1.1 1999/12/02 16:06:03 damke Exp $
- See Also:
MFCCardServiceFactory
|
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MFCCardServiceFactoryER
public MFCCardServiceFactoryER()
- Default constructor.
getCardType
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.
This method replaces the former knows() method.
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.
- Parameters:
cid - A CardID received from a Slot.scheduler - A CardServiceScheduler that can be used to communicate with
the card to determine its type.- Returns:
- A valid CardType if the factory can instantiate services for this
card.
CardType.UNSUPPORTED if the factory does not know the card.
- Overrides:
- getCardType in class CardServiceFactory
- See Also:
##getClassFor
getClasses
protected java.util.Enumeration getClasses(CardType type)
- Return an enumeration of known CardService classes.
- Parameters:
type - The CardType for which to enumerate.- Returns:
- An Enumeration of class objects.
- Overrides:
- getClasses in class CardServiceFactory
|