SpringCard PC/SC API for .NET  18.10.10
Access PC/SC couplers and smart cards from .NET applications
SpringCard.PCSC.CAPDU Class Reference

The CAPDU object is used to format and send COMMAND APDUs (according to ISO 7816-4) to the smartcard. More...

Inheritance diagram for SpringCard.PCSC.CAPDU:
SpringCard.PCSC.CardBuffer

Public Member Functions

 CAPDU (byte[]bytes)
 
 CAPDU (byte CLA, byte INS, byte P1, byte P2)
 
 CAPDU (byte CLA, byte INS, byte P1, byte P2, byte P3)
 
 CAPDU (byte CLA, byte INS, byte P1, byte P2, byte[] data)
 
 CAPDU (byte CLA, byte INS, byte P1, byte P2, string data)
 
 CAPDU (byte CLA, byte INS, byte P1, byte P2, byte[] data, byte LE)
 
 CAPDU (byte CLA, byte INS, byte P1, byte P2, string data, byte LE)
 
 CAPDU (string str)
 
bool Valid ()
 
- Public Member Functions inherited from SpringCard.PCSC.CardBuffer
 CardBuffer (byte b)
 
 CardBuffer (ushort w)
 
 CardBuffer (byte[]bytes)
 
 CardBuffer (byte[]bytes, long length)
 
 CardBuffer (byte[]bytes, long offset, long length)
 
 CardBuffer (string str)
 
byte GetByte (long offset)
 
byte [] GetBytes ()
 
byte [] GetBytes (long length)
 
byte [] GetBytes (long offset, long length)
 
char [] GetChars (long offset, long length)
 
void SetBytes (byte[]bytes)
 
void SetBytes (byte[]bytes, long length)
 
void SetBytes (byte[]bytes, long offset, long length)
 
void Append (byte[]bytes)
 
void AppendOne (byte b)
 
bool StartsWith (byte[] value)
 
bool StartsWith (CardBuffer value)
 
void SetString (string str)
 
string GetString ()
 
virtual string AsString (string separator)
 
virtual string AsString ()
 

Properties

byte CLA [get, set]
 
byte INS [get, set]
 
byte P1 [get, set]
 
byte P2 [get, set]
 
byte Lc [get]
 
byte Le [get, set]
 
CardBuffer data [get, set]
 
byte [] DataBytes [get, set]
 
- Properties inherited from SpringCard.PCSC.CardBuffer
byte this[long offset] [get]
 
int Length [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from SpringCard.PCSC.CardBuffer
static byte [] BytesFromString (string s)
 
static string StringFromBytes (byte[] a)
 
- Public Attributes inherited from SpringCard.PCSC.CardBuffer
byte [] Bytes
 

Detailed Description

The CAPDU object is used to format and send COMMAND APDUs (according to ISO 7816-4) to the smartcard.

Constructor & Destructor Documentation

◆ CAPDU() [1/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte []  bytes)

Create a CAPDU from the given arry of bytes

◆ CAPDU() [2/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte  CLA,
byte  INS,
byte  P1,
byte  P2 
)

Create a CAPDU with only the CLA, INS, P1, P2 header

◆ CAPDU() [3/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte  CLA,
byte  INS,
byte  P1,
byte  P2,
byte  P3 
)

Create a CAPDU with only the CLA, INS, P1, P2 header and a P3 (Le) entry

◆ CAPDU() [4/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte  CLA,
byte  INS,
byte  P1,
byte  P2,
byte []  data 
)

Create a CAPDU with the CLA, INS, P1, P2 header and some data

◆ CAPDU() [5/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte  CLA,
byte  INS,
byte  P1,
byte  P2,
string  data 
)

Create a CAPDU with the CLA, INS, P1, P2 header and some data. The data field is taken from a string.

◆ CAPDU() [6/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte  CLA,
byte  INS,
byte  P1,
byte  P2,
byte []  data,
byte  LE 
)

Create a CAPDU with the CLA, INS, P1, P2 header, some data and a LE.

◆ CAPDU() [7/7]

SpringCard.PCSC.CAPDU.CAPDU ( byte  CLA,
byte  INS,
byte  P1,
byte  P2,
string  data,
byte  LE 
)

Create a CAPDU with the CLA, INS, P1, P2 header, some data and a LE. The data field is taken from a string.


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