Class GenericExtensionService

  • All Implemented Interfaces:
    org.eclipse.keyple.core.common.KeypleCardExtension

    public final class GenericExtensionService
    extends java.lang.Object
    implements org.eclipse.keyple.core.common.KeypleCardExtension
    Card extension service providing basic access to APDU exchange functions with a card.
    Since:
    2.0.0
    • Method Detail

      • getInstance

        public static GenericExtensionService getInstance()
        Gets the unique instance of this object.
        Returns:
        A not null reference.
      • createGenericCardSelectionExtension

        public GenericCardSelectionExtension createGenericCardSelectionExtension()
        Creates an instance of CardSelectionExtension.
        Returns:
        A not null reference.
        Since:
        2.0.0
      • createCardTransaction

        public CardTransactionManager createCardTransaction​(org.eclipse.keypop.reader.CardReader reader,
                                                            org.eclipse.keypop.reader.selection.spi.SmartCard card)
        Creates an instance of CardTransactionManager.
        Parameters:
        reader - The reader through which the card communicates.
        card - The initial card data provided by the selection process.
        Returns:
        A not null reference.
        Since:
        2.0.0
      • createCardResourceProfileExtension

        public org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension createCardResourceProfileExtension​(org.eclipse.keypop.reader.selection.CardSelector<org.eclipse.keypop.reader.selection.IsoCardSelector> cardSelector,
                                                                                                                            GenericCardSelectionExtension genericCardSelectionExtension)
        Creates an instance of CardResourceProfileExtension to be provided to the CardResourceService.

        The provided argument defines the selection rules to be applied to the card when detected by the card resource service.

        Parameters:
        cardSelector - The ISO card selector targeting the expected card profile.
        genericCardSelectionExtension - A not null generic card extension.
        Returns:
        A not null reference.
        Throws:
        java.lang.IllegalArgumentException - If genericCardSelectionExtension is null.
        Since:
        2.0.0
      • getCardApiVersion

        public java.lang.String getCardApiVersion()
        Specified by:
        getCardApiVersion in interface org.eclipse.keyple.core.common.KeypleCardExtension
        Since:
        2.0.0
      • getReaderApiVersion

        public java.lang.String getReaderApiVersion()
        Specified by:
        getReaderApiVersion in interface org.eclipse.keyple.core.common.KeypleCardExtension
        Since:
        2.0.0
      • getCommonApiVersion

        public java.lang.String getCommonApiVersion()
        Specified by:
        getCommonApiVersion in interface org.eclipse.keyple.core.common.KeypleCardExtension
        Since:
        2.0.0