com.dalsemi.onewire.jib.service
Class JiBCardServiceFactory
java.lang.Object
|
+--opencard.core.service.CardServiceFactory
|
+--com.dalsemi.onewire.jib.service.JiBCardServiceFactory
- public class JiBCardServiceFactory
- extends opencard.core.service.CardServiceFactory
A JiBCardServiceFactory
can instantiate CardService
s for
the Java Powered iButton.
A CardServiceFactory
in OpenCard provides a device-independent means of
accessing 'services' on a card. Services might include a means of selecting or deleting
applets from a JavaCard device such as the Java Powered iButton.
A CardServiceFactory
must be 'registered' in order to be used. One way to
do this is through the java.lang.System
property methods...
System.getProperties().put("OpenCard.services",
"com.dalsemi.onewire.jib.service.JiBCardServiceFactory");
- Author:
- K
- See Also:
JiBAppletAccessCardService
,
JiBAppletManagerCardService
Method Summary |
opencard.core.service.CardType |
getCardType(opencard.core.terminal.CardID cardid,
opencard.core.service.CardServiceScheduler scheduler)
Indicate whether this CardServiceFactory "knows" the smart card OS
and/or installed card applications
and might be able to instantiate CardService s for it. |
Enumeration |
getClasses(opencard.core.service.CardType cardtype)
Return an enumeration of known CardService classes. |
JiBCardServiceFactory
public JiBCardServiceFactory()
getClasses
public Enumeration getClasses(opencard.core.service.CardType cardtype)
- Return an enumeration of known
CardService
classes.
- Parameters:
type
- The CardType
of the smart card for which
the enumeration is requested.- Returns:
- An
Enumeration
of class objects.
getCardType
public opencard.core.service.CardType getCardType(opencard.core.terminal.CardID cardid,
opencard.core.service.CardServiceScheduler scheduler)
- Indicate whether this
CardServiceFactory
"knows" the smart card OS
and/or installed card applications
and might be able to instantiate CardService
s for it.
- 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.
- See Also:
getClasses(opencard.core.service.CardType)
Copyright © 1999-2003 Dallas Semiconductor. All Rights Reserved.