Class RemoteClientCardServiceFactory


  • public class RemoteClientCardServiceFactory
    extends CardServiceFactory
    Factory creating RemoteClient card services
    Author:
    lew
    • Constructor Detail

      • RemoteClientCardServiceFactory

        public RemoteClientCardServiceFactory()
    • Method Detail

      • getCardType

        protected CardType getCardType​(CardID cid,
                                       CardServiceScheduler scheduler)
                                throws CardTerminalException
        Description copied from class: CardServiceFactory
        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. 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.

        Specified by:
        getCardType in class CardServiceFactory
        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.
        Throws:
        CardTerminalException
      • getClasses

        protected java.util.Enumeration getClasses​(CardType type)
        Description copied from class: CardServiceFactory
        Return an enumeration of known CardService classes.

        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.

        Specified by:
        getClasses in class CardServiceFactory
        Parameters:
        type - The CardType of the smart card for which the enumeration is requested.
        Returns:
        An Enumeration of class objects.