HID OMNIKEY Smart Card Readers' Sample Codes  0.0.0.116
HidGlobal.OK.Readers.ApduCommand Class Reference
Inheritance diagram for HidGlobal.OK.Readers.ApduCommand:
HidGlobal.OK.Readers.IApduCommand

Public Member Functions

 ApduCommand (IEnumerable< byte > apduHeader, IEnumerable< byte > payload, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (IEnumerable< byte > apduHeader, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (byte cla, byte ins, byte p1, byte p2, IEnumerable< byte > payload, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (byte cla, byte ins, byte p1, byte p2, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (ApduFormat explicitFormat, IEnumerable< byte > apduHeader, IEnumerable< byte > payload, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (ApduFormat explicitFormat, IEnumerable< byte > apduHeader, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (ApduFormat explicitFormat, byte cla, byte ins, byte p1, byte p2, IEnumerable< byte > payload, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
 ApduCommand (ApduFormat explicitFormat, byte cla, byte ins, byte p1, byte p2, int? maximumExpectedResponseDataFieldLength=null)
 Initialize new Apdu command object. More...
 
IEnumerable< byte > GetBytes ()
 
override string ToString ()
 

Static Public Member Functions

static operator byte[] (ApduCommand apduCommand)
 

Public Attributes

const int ShortApduMaximalExpectedResponsePayloadLength = 256
 
const int ExtendedApduMaximalExpectedResponsePayloadLength = 65536
 
ILengthField Lc => _lc
 
IReadOnlyList< byte > Payload => _payloadBytes
 
ILengthField Le => _le
 

Properties

static byte [] HidGlobalSpecificApduCommandHeader [get]
 
ApduFormat Format [get]
 
byte Cla [get]
 
byte Ins [get]
 
byte P1 [get]
 
byte P2 [get]
 
- Properties inherited from HidGlobal.OK.Readers.IApduCommand
byte Cla [get]
 
byte Ins [get]
 
byte P1 [get]
 
byte P2 [get]
 
ILengthField Lc [get]
 
IReadOnlyList< byte > Payload [get]
 
ILengthField Le [get]
 
ApduFormat Format [get]
 

Constructor & Destructor Documentation

◆ ApduCommand() [1/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( IEnumerable< byte >  apduHeader,
IEnumerable< byte >  payload,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
apduHeader
payload
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [2/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( IEnumerable< byte >  apduHeader,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
apduHeader
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [3/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( byte  cla,
byte  ins,
byte  p1,
byte  p2,
IEnumerable< byte >  payload,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
cla
ins
p1
p2
payload
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [4/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( byte  cla,
byte  ins,
byte  p1,
byte  p2,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
cla
ins
p1
p2
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [5/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( ApduFormat  explicitFormat,
IEnumerable< byte >  apduHeader,
IEnumerable< byte >  payload,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
explicitFormat
apduHeader
payload
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [6/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( ApduFormat  explicitFormat,
IEnumerable< byte >  apduHeader,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
explicitFormat
apduHeader
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [7/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( ApduFormat  explicitFormat,
byte  cla,
byte  ins,
byte  p1,
byte  p2,
IEnumerable< byte >  payload,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
explicitFormat
cla
ins
p1
p2
payload
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

◆ ApduCommand() [8/8]

HidGlobal.OK.Readers.ApduCommand.ApduCommand ( ApduFormat  explicitFormat,
byte  cla,
byte  ins,
byte  p1,
byte  p2,
int?  maximumExpectedResponseDataFieldLength = null 
)

Initialize new Apdu command object.

Parameters
explicitFormat
cla
ins
p1
p2
maximumExpectedResponseDataFieldLengthSet to null to specify maximal available response size for give apdu format.

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