SpringCard Smart Readers library for .NET  19.9.20
Communicate and manage SpringCard Smart Reader devices
SpringCard.SmartReader.MasterCardV2.MasterCardV2 Class Reference

The Master Card object represents the content (not the physical object) of a Master Card. The content is made of TLV objects. More...

Public Member Functions

 MasterCardV2 ()
 Instantiate an empty Master Card object.
 
void Dump (string Prefix="")
 
void RemoveContentTag (TAG Tag)
 Remove any TLV object having this Tag.
 
void AddContent (byte[] buffer, int size)
 
void AddContent (byte[] buffer)
 
void AddContent (TLV tlv)
 Add a TLV object to the Master Card.
 
void AddContent (List< TLV > tlvList)
 Add a list of TLV object to the Master Card.
 
void AddResponse (byte[] buffer)
 
void AddResponse (TLV tlv)
 Add a TLV object to the Master Card.
 
void SetContent (ConfigData contentFile)
 Process a .mastercard file and add its content to the Master Card.
 
bool ReaderKeysMatch (SpringCard.SmartReader.Config.ReaderKeys readerKeys)
 
bool ReaderKeysMatch ()
 
bool VerifySignature ()
 
string GetDescription ()
 
bool IsSupported ()
 
bool IsFormatted (out Interaction interaction)
 
bool IsFormatted (out uint totalCapacity, out Interaction interaction)
 
bool IsFormattable (out Interaction interaction)
 
bool IsFormattable (out uint totalCapacity, out Interaction interaction)
 
bool Format (out Interaction interaction)
 
bool IsErasable (out Interaction interaction)
 
bool Erase (out Interaction interaction)
 
bool IsWritable (out Interaction interaction)
 
bool Write (out Interaction interaction)
 
bool Read (out Interaction interaction)
 

Static Public Member Functions

static MasterCardV2 CreateWriter (SCardChannel cardChannel, WriterKeys writerKeys, ConfigData cardContent, out Interaction interaction)
 
static MasterCardV2 CreateWriter (CardInterface card, WriterKeys writerKeys, ConfigData cardContent)
 
static MasterCardV2 CreateEraser (SCardChannel cardChannel, WriterKeys writerKeys, out Interaction interaction)
 
static MasterCardV2 CreateEraser (CardInterface card, WriterKeys writerKeys)
 
static MasterCardV2 CreateReader (SCardChannel cardChannel, ReaderKeys readerKeys, out Interaction interaction)
 
static MasterCardV2 CreateReader (CardInterface card, ReaderKeys readerKeys)
 
static MasterCardV2 CreateAnalyzer (SCardChannel cardChannel, out Interaction interaction)
 
static MasterCardV2 CreateAnalyzer (CardInterface card)
 
static WriterKeys GenerateNewKeys (byte[] BrandId)
 
static bool SelfTest ()
 

Public Attributes

uint DesfireAid = 0x4D4332
 

Properties

byte [] Content [get]
 Retrieve the complete content of the Master Card. This function is suitable for NTAG only (not Desfire).
 
byte [] PublicContent [get]
 Retrieve the part of the content that must be publicly readable. This function is suitable for Desfire only (not NTAG).
 
byte [] SecureContent [get]
 Retrieve the part of the content that must be protected againts unallowed readings. This function is suitable for Desfire only (not NTAG).
 
byte [] UID [get]
 

Detailed Description

The Master Card object represents the content (not the physical object) of a Master Card. The content is made of TLV objects.


The documentation for this class was generated from the following file: