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 java.lang.Object implements org.eclipse.keyple.core.common.KeypleCardExtensionCard extension dedicated to the management of Calypso legacy SAMs (SAM-C1, HSM-C1, etc.).- Since:
- 0.2.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtensioncreateLegacySamResourceProfileExtension(org.eclipse.keypop.calypso.crypto.legacysam.sam.LegacySamSelectionExtension legacySamSelection)Returns aCardResourceProfileExtensionto be used with the card resource service.org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtensioncreateLegacySamResourceProfileExtension(org.eclipse.keypop.calypso.crypto.legacysam.sam.LegacySamSelectionExtension legacySamSelection, java.lang.String powerOnDataRegex)Returns aCardResourceProfileExtensionto be used with the card resource service.java.lang.StringgetCardApiVersion()java.lang.StringgetCommonApiVersion()ContextSettinggetContextSetting()Returns the context setting.static LegacySamExtensionServicegetInstance()Returns the service instance.org.eclipse.keypop.calypso.crypto.legacysam.LegacySamApiFactorygetLegacySamApiFactory()Returns aLegacySamApiFactory.java.lang.StringgetReaderApiVersion()
-
-
-
Method Detail
-
getInstance
public static LegacySamExtensionService getInstance()
Returns the service instance.- Returns:
- A not null reference.
- Since:
- 0.2.0
-
getContextSetting
public ContextSetting 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 legacySamSelection)
Returns aCardResourceProfileExtensionto be used with the card resource service.- Parameters:
legacySamSelection- The legacy SAM selection extension to use.- Returns:
- A not null reference.
- Throws:
java.lang.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 legacySamSelection, java.lang.String powerOnDataRegex)Returns aCardResourceProfileExtensionto be used with the card resource service.- Parameters:
legacySamSelection- The legacy SAM selection extension to use.powerOnDataRegex- A regular expression.- Returns:
- A not null reference.
- Throws:
java.lang.IllegalArgumentException- If no SAM selection is provided.java.lang.IllegalArgumentException- If the regular expression is null or empty.- Since:
- 0.2.0
-
getCommonApiVersion
public java.lang.String getCommonApiVersion()
- Specified by:
getCommonApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 0.2.0
-
getReaderApiVersion
public java.lang.String getReaderApiVersion()
- Specified by:
getReaderApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 0.2.0
-
getCardApiVersion
public java.lang.String getCardApiVersion()
- Specified by:
getCardApiVersionin interfaceorg.eclipse.keyple.core.common.KeypleCardExtension- Since:
- 0.2.0
-
-