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 Details

    • 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 a LegacySamApiFactory.
      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 a CardResourceProfileExtension 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 a CardResourceProfileExtension 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

      public String getCommonApiVersion()
      Specified by:
      getCommonApiVersion in interface org.eclipse.keyple.core.common.KeypleCardExtension
      Since:
      0.2.0
    • getReaderApiVersion

      public String getReaderApiVersion()
      Specified by:
      getReaderApiVersion in interface org.eclipse.keyple.core.common.KeypleCardExtension
      Since:
      0.2.0
    • getCardApiVersion

      public String getCardApiVersion()
      Specified by:
      getCardApiVersion in interface org.eclipse.keyple.core.common.KeypleCardExtension
      Since:
      0.2.0