Package org.eclipse.keyple.card.generic
Class GenericExtensionService
java.lang.Object
org.eclipse.keyple.card.generic.GenericExtensionService
- All Implemented Interfaces:
org.eclipse.keyple.core.common.KeypleCardExtension
public final class GenericExtensionService
extends 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 Summary
Modifier and TypeMethodDescriptionorg.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtensioncreateCardResourceProfileExtension(org.eclipse.keypop.reader.selection.IsoCardSelector cardSelector, org.eclipse.keypop.genericcard.GenericCardSelectionExtension genericCardSelectionExtension) Creates an instance ofCardResourceProfileExtensionto be provided to theCardResourceService.org.eclipse.keypop.genericcard.GenericCardApiFactoryReturns an instance ofGenericCardApiFactory.static GenericExtensionServiceGets the unique instance of this object.
-
Method Details
-
getInstance
Gets the unique instance of this object.- Returns:
- A not null reference.
-
getGenericCardApiFactory
public org.eclipse.keypop.genericcard.GenericCardApiFactory getGenericCardApiFactory()Returns an instance ofGenericCardApiFactory.- Returns:
- A not null reference.
- Since:
- 4.0.0
-
createCardResourceProfileExtension
public org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension createCardResourceProfileExtension(org.eclipse.keypop.reader.selection.IsoCardSelector cardSelector, org.eclipse.keypop.genericcard.GenericCardSelectionExtension genericCardSelectionExtension) Creates an instance ofCardResourceProfileExtensionto be provided to theCardResourceService.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:
IllegalArgumentException- If genericCardSelectionExtension is null.- Since:
- 2.0.0
-
getCardApiVersion
- Specified by:
getCardApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 2.0.0
-
getReaderApiVersion
- Specified by:
getReaderApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 2.0.0
-
getCommonApiVersion
- Specified by:
getCommonApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 2.0.0
-