Package org.eclipse.keyple.card.calypso
Class CalypsoExtensionService
- java.lang.Object
-
- org.eclipse.keyple.card.calypso.CalypsoExtensionService
-
- All Implemented Interfaces:
org.eclipse.keyple.core.common.KeypleCardExtension
public final class CalypsoExtensionService extends java.lang.Object implements org.eclipse.keyple.core.common.KeypleCardExtensionCard extension dedicated to the management of Calypso cards.- Since:
- 2.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRODUCT_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.calypsonet.terminal.calypso.transaction.CardSecuritySettingcreateCardSecuritySetting()Creates an instance ofCalypsoCardSelectionthat can be supplemented later with specific commands.org.calypsonet.terminal.calypso.card.CalypsoCardSelectioncreateCardSelection()Creates an instance ofCalypsoCardSelectionthat can be supplemented later with specific commands.org.calypsonet.terminal.calypso.transaction.CardTransactionManagercreateCardTransaction(org.calypsonet.terminal.reader.CardReader reader, org.calypsonet.terminal.calypso.card.CalypsoCard calypsoCard, org.calypsonet.terminal.calypso.transaction.CardSecuritySetting cardSecuritySetting)Creates a card transaction manager to handle operations secured with a SAM.org.calypsonet.terminal.calypso.transaction.CardTransactionManagercreateCardTransactionWithoutSecurity(org.calypsonet.terminal.reader.CardReader reader, org.calypsonet.terminal.calypso.card.CalypsoCard calypsoCard)Creates a card transaction manager to handle non-secured operations.org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtensioncreateSamResourceProfileExtension(org.calypsonet.terminal.calypso.sam.CalypsoSamSelection calypsoSamSelection)Creates an instance ofCardResourceProfileExtensionto be provided to theCardResourceService.org.calypsonet.terminal.calypso.sam.CalypsoSamSelectioncreateSamSelection()Creates an instance ofCalypsoCardSelection.java.lang.StringgetCardApiVersion()java.lang.StringgetCommonApiVersion()static CalypsoExtensionServicegetInstance()Gets the single instance of CalypsoExtensionService.java.lang.StringgetReaderApiVersion()
-
-
-
Field Detail
-
PRODUCT_TYPE
public static final java.lang.String PRODUCT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static CalypsoExtensionService getInstance()
Gets the single instance of CalypsoExtensionService.- Returns:
- The instance of CalypsoExtensionService.
- Since:
- 2.0.0
-
getReaderApiVersion
public java.lang.String getReaderApiVersion()
- Specified by:
getReaderApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 2.0.0
-
getCardApiVersion
public java.lang.String getCardApiVersion()
- Specified by:
getCardApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 2.0.0
-
getCommonApiVersion
public java.lang.String getCommonApiVersion()
- Specified by:
getCommonApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 2.0.0
-
createCardSelection
public org.calypsonet.terminal.calypso.card.CalypsoCardSelection createCardSelection()
Creates an instance ofCalypsoCardSelectionthat can be supplemented later with specific commands.- Returns:
- A not null reference.
- Since:
- 2.0.0
-
createSamSelection
public org.calypsonet.terminal.calypso.sam.CalypsoSamSelection createSamSelection()
Creates an instance ofCalypsoCardSelection.- Returns:
- A not null reference.
- Since:
- 2.0.0
-
createSamResourceProfileExtension
public org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension createSamResourceProfileExtension(org.calypsonet.terminal.calypso.sam.CalypsoSamSelection calypsoSamSelection)
Creates an instance ofCardResourceProfileExtensionto be provided to theCardResourceService.The provided argument defines the selection rules to be applied to the SAM when detected by the card resource service.
- Parameters:
calypsoSamSelection- A not nullCalypsoSamSelection.- Returns:
- A not null reference.
- Throws:
java.lang.IllegalArgumentException- If calypsoSamSelection is null.- Since:
- 2.0.0
-
createCardSecuritySetting
public org.calypsonet.terminal.calypso.transaction.CardSecuritySetting createCardSecuritySetting()
Creates an instance ofCalypsoCardSelectionthat can be supplemented later with specific commands.- Returns:
- A not null reference.
- Since:
- 2.0.0
-
createCardTransaction
public org.calypsonet.terminal.calypso.transaction.CardTransactionManager createCardTransaction(org.calypsonet.terminal.reader.CardReader reader, org.calypsonet.terminal.calypso.card.CalypsoCard calypsoCard, org.calypsonet.terminal.calypso.transaction.CardSecuritySetting cardSecuritySetting)Creates a card transaction manager to handle operations secured with a SAM.The reader and the card's initial data are those from the selection.
The providedCardSecuritySettingmust match the specific needs of the card (SAM card resource profile and other optional settings).- Parameters:
reader- The reader through which the card communicates.calypsoCard- The initial card data provided by the selection process.cardSecuritySetting- The security settings.- Returns:
- A not null reference.
- Throws:
java.lang.IllegalArgumentException- If one of the provided argument is null or if the CalypsoCard has a null or unknown product type.- Since:
- 2.0.0
-
createCardTransactionWithoutSecurity
public org.calypsonet.terminal.calypso.transaction.CardTransactionManager createCardTransactionWithoutSecurity(org.calypsonet.terminal.reader.CardReader reader, org.calypsonet.terminal.calypso.card.CalypsoCard calypsoCard)Creates a card transaction manager to handle non-secured operations.- Parameters:
reader- The reader through which the card communicates.calypsoCard- The initial card data provided by the selection process.- Returns:
- A not null reference.
- Throws:
java.lang.IllegalArgumentException- If one of the provided argument is null or if the CalypsoCard has a null or unknown product type.- Since:
- 2.0.0
-
-