Class 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 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 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:
        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 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:
        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 interface org.eclipse.keyple.core.common.KeypleCardExtension
        Since:
        0.2.0
      • getReaderApiVersion

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

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