Package com.gemalto.mfs.mwsdk.dcm.ppse
Class FciIssuerDiscretionaryData
java.lang.Object
com.gemalto.mfs.mwsdk.dcm.ppse.FciIssuerDiscretionaryData
Represents the FCI Issuer Discretionary Data (Tag BF0C).
This class contains directory entries and additional issuer-specific tags.
-
Constructor Summary
ConstructorsConstructorDescriptionFciIssuerDiscretionaryData(ArrayList<DirectoryEntry> directoryEntryList, Map<ByteBuffer, byte[]> additionalTags) Constructs FciIssuerDiscretionaryData from a list of directory entries and additional tags. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getAdditionalTag(byte[] key) Gets an additional tag value for the specified key.Map<ByteBuffer,byte[]> Returns a deep copy of additional tags.Gets the list of directory entries.voidsetAdditionalTag(byte[] key, byte[] value) Sets an additional tag with the specified key and value.
-
Constructor Details
-
FciIssuerDiscretionaryData
public FciIssuerDiscretionaryData(@NonNull ArrayList<DirectoryEntry> directoryEntryList, @NonNull Map<ByteBuffer, byte[]> additionalTags) throws InternalComponentExceptionConstructs 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- ifadditionalTagsdo not follow BER-TLV rules
-
-
Method Details
-
getDirectoryEntryList
Gets the list of directory entries.- Returns:
- ArrayList of DirectoryEntry objects (Tag 61)
-
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 setkey- The tag key- Throws:
InternalComponentException- ifkeyorvaluedo 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
-