Class FciIssuerDiscretionaryData

java.lang.Object
com.gemalto.mfs.mwsdk.dcm.ppse.FciIssuerDiscretionaryData

public final class FciIssuerDiscretionaryData extends Object
Represents the FCI Issuer Discretionary Data (Tag BF0C). This class contains directory entries and additional issuer-specific tags.
  • Constructor Details

    • FciIssuerDiscretionaryData

      public FciIssuerDiscretionaryData(@NonNull ArrayList<DirectoryEntry> directoryEntryList, @NonNull Map<ByteBuffer,byte[]> additionalTags) throws InternalComponentException
      Constructs FciIssuerDiscretionaryData from a list of directory entries and additional tags.
      Parameters:
      directoryEntryList - List of directory entries (Tag 61)
      additionalTags - Map of additional tags not parsed as directory entries
      Throws:
      InternalComponentException - if additionalTags do not follow BER-TLV rules
  • Method Details

    • getDirectoryEntryList

      @NonNull public ArrayList<DirectoryEntry> getDirectoryEntryList()
      Gets the list of directory entries.
      Returns:
      ArrayList of DirectoryEntry objects (Tag 61)
    • getAdditionalTags

      @NonNull public Map<ByteBuffer,byte[]> getAdditionalTags()
      Returns a deep copy of additional tags.
      Returns:
      Map of additional tags. Any changes to this map will not be reflected in the final FciIssuerDiscretionaryData. Use setAdditionalTag(byte[], byte[]) instead
    • setAdditionalTag

      public void setAdditionalTag(@NonNull byte[] key, @Nullable byte[] value) throws InternalComponentException
      Sets an additional tag with the specified key and value.
      Parameters:
      value - The tag value to set
      key - The tag key
      Throws:
      InternalComponentException - if key or value do not follow BER-TLV rules
    • getAdditionalTag

      @Nullable public byte[] getAdditionalTag(@NonNull byte[] key)
      Gets an additional tag value for the specified key.
      Parameters:
      key - The tag key
      Returns:
      The tag value, or null if not found