The CommandApdu type exposes the following members.

Constructors

  NameDescription
Public methodCommandApdu()()()()
Constructs a CommandAPDU with default capacity and content 0 0 0 0.
Public methodCommandApdu(array<Byte>[]()[][])
Constructs a CommandApdu from ISO7816 apdu bytes.
Public methodCommandApdu(Int32)
Constructs a CommandAPDU with specified capacity and content 0 0 0 0.
Public methodCommandApdu(Byte, Byte)
Constructs a CommandAPDU with default capacity and content CLA INS 0 0.
Public methodCommandApdu(Byte, Byte, Byte, Byte)
Constructs a CommandAPDU with default capacity and content CLA INS P1 P2.

Methods

  NameDescription
Public methodAppend(Byte)
Append byte to this apdu (IDATA).
Public methodAppend(array<Byte>[]()[][])
Append bytes to this apdu (IDATA).
Public methodAppend(Int16)
Append a short value to this apdu (IDATA).
Public methodAppend(Int32)
Append an integer value to this apdu (IDATA).
Public methodAppend(Int64)
Append a long value to this apdu (IDATA).
Public methodAppend(array<Byte>[]()[][], Int32, Int32)
Append bytes to this apdu (IDATA).
Public methodAppend24BitInteger
Append an 3 byte 24 bit integer value to this apdu (IDATA).
Public methodClone
Clone this object.
Public methodCopyIData
Copy IDATA (see ISO7816) of APDU to destination buffer.
Public methodDisableLE
Disable LE.
Public methodEquals
Check if this CommandAPDU is equal to specified object.
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Get hash code for this object.
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Reset CommandAPDU to have no data but header (CLA INS P1 P2) with LC=0 and LE=0
Protected methodSetLC
Set LC value for this APDU.
Public methodToString
Get this CommandAPDU as string (hexadecimal dump of byte content).
(Overrides Object..::..ToString()()()().)

Fields

  NameDescription
Public fieldStatic memberLeDisabled
Set LE to LeDisabled if no response data should be received from card.

Properties

  NameDescription
Public propertyCLA
APDU class byte CLA
Public propertyData
Get a copy of the byte array holding the apdu data (Header + IDATA).
Public propertyDoNotLog
If set to true prevent this command apdu from being visible in log file.
Public propertyStatic memberDoNotLogGlobal
Initial value for CommandAPDU.DoNotLog. Set to true (default) to prevent any command apdu to be visible in log file.
Public propertyExtendedLC
LC value (supporting extended length) for this APDU.
Public propertyIData
Get a copy of the byte array holding the apdu data field (IDATA without header).
Public propertyINS
APDU instruction byte INS.
Public propertyIsLEDisabled
True if LE is disabled, otherwise false.
Public propertyItem
Get a byte of this APDU.
Public propertyLC
LC value for this APDU.
Public propertyLcField
Get a copy of the apdu lc field. This may be one (standard length) or multiple bytes (extended length).
Public propertyLE
LE (0..255 respective 0..65535 or LeDisabled)
Public propertyLeField
Get a copy of the apdu le field. This may be none (disable Le), one (standard length) or multiple bytes (extended length).
Public propertyLength
Get current length of complete APDU.
Public propertyP1
APDU first ISO7816 parameter P1.
Public propertyP1P2
APDU combined first and second parameter P1P2.
Public propertyP2
APDU second ISO7816 parameter P2
Public propertyUseExtendedLC
Indicates if the APDU should be encoded using extended length LC.
Public propertyUseExtendedLE
Indicates if the APDU should be encoded using extended length LE.
Public propertyUseExtendedLength
Indicates if the APDU should be encoded using extended length LC and LE.

See Also