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.KeypleCardExtension
Card 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.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, java.lang.String powerOnDataRegex)
Returns aCardResourceProfileExtension
to be used with the card resource service.java.lang.String
getCardApiVersion()
java.lang.String
getCommonApiVersion()
ContextSetting
getContextSetting()
Returns the context setting.static LegacySamExtensionService
getInstance()
Returns the service instance.org.eclipse.keypop.calypso.crypto.legacysam.LegacySamApiFactory
getLegacySamApiFactory()
Returns aLegacySamApiFactory
.java.lang.String
getReaderApiVersion()
-
-
-
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 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:
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 legacySamSelectionExtension, java.lang.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:
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:
getCommonApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 0.2.0
-
getReaderApiVersion
public java.lang.String getReaderApiVersion()
- Specified by:
getReaderApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 0.2.0
-
getCardApiVersion
public java.lang.String getCardApiVersion()
- Specified by:
getCardApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 0.2.0
-
-