Class LegacySamExtensionService
java.lang.Object
org.eclipse.keyple.card.calypso.crypto.legacysam.LegacySamExtensionService
- All Implemented Interfaces:
org.eclipse.keyple.core.common.KeypleCardExtension
public final class LegacySamExtensionService
extends Object
implements org.eclipse.keyple.core.common.KeypleCardExtension
Card extension dedicated to the management of Calypso legacy SAMs (SAM-C1, HSM-C1, etc.).
- Since:
- 0.2.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension
createLegacySamResourceProfileExtension
(org.eclipse.keypop.calypso.crypto.legacysam.sam.LegacySamSelectionExtension legacySamSelectionExtension) Returns aCardResourceProfileExtension
to be used with the card resource service.org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension
createLegacySamResourceProfileExtension
(org.eclipse.keypop.calypso.crypto.legacysam.sam.LegacySamSelectionExtension legacySamSelectionExtension, String powerOnDataRegex) Returns aCardResourceProfileExtension
to be used with the card resource service.Returns the context setting.static LegacySamExtensionService
Returns the service instance.org.eclipse.keypop.calypso.crypto.legacysam.LegacySamApiFactory
Returns aLegacySamApiFactory
.
-
Method Details
-
getInstance
Returns the service instance.- Returns:
- A not null reference.
- Since:
- 0.2.0
-
getContextSetting
Returns the context setting.- Returns:
- A not null
ContextSetting
. - Since:
- 0.4.0
-
getLegacySamApiFactory
public org.eclipse.keypop.calypso.crypto.legacysam.LegacySamApiFactory getLegacySamApiFactory()Returns aLegacySamApiFactory
.- Returns:
- A not null reference.
- Since:
- 0.4.0
-
createLegacySamResourceProfileExtension
public org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension createLegacySamResourceProfileExtension(org.eclipse.keypop.calypso.crypto.legacysam.sam.LegacySamSelectionExtension legacySamSelectionExtension) Returns aCardResourceProfileExtension
to be used with the card resource service.- Parameters:
legacySamSelectionExtension
- The legacy SAM selection extension to use.- Returns:
- A not null reference.
- Throws:
IllegalArgumentException
- If no SAM selection is provided.- Since:
- 0.2.0
-
createLegacySamResourceProfileExtension
public org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension createLegacySamResourceProfileExtension(org.eclipse.keypop.calypso.crypto.legacysam.sam.LegacySamSelectionExtension legacySamSelectionExtension, String powerOnDataRegex) Returns aCardResourceProfileExtension
to be used with the card resource service.- Parameters:
legacySamSelectionExtension
- The legacy SAM selection extension to use.powerOnDataRegex
- A regular expression.- Returns:
- A not null reference.
- Throws:
IllegalArgumentException
- If no SAM selection is provided.IllegalArgumentException
- If the regular expression is null or empty.- Since:
- 0.2.0
-
getCommonApiVersion
- Specified by:
getCommonApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 0.2.0
-
getReaderApiVersion
- Specified by:
getReaderApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 0.2.0
-
getCardApiVersion
- Specified by:
getCardApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 0.2.0
-