HID OMNIKEY Smart Card Readers' Sample Codes  0.0.0.116
HidGlobal.OK.Readers.SecureSession.SecureChannel Class Reference
Inheritance diagram for HidGlobal.OK.Readers.SecureSession.SecureChannel:
HidGlobal.OK.Readers.SecureSession.ISecureChannel

Public Member Functions

 SecureChannel (ISmartCardReader smartCardReader)
 
void Establish (string key, byte keySlot)
 Establish secure channel with given key and access wrights defined by key slot. More...
 
void Establish (byte[] key, byte keySlot)
 Establish secure channel with given key and access wrights defined by key slot. More...
 
void Terminate ()
 Terminates established secure channel More...
 
string SendCommand (string apdu)
 Encrypts and sends given apdu command, returns decrypted response. More...
 
byte [] SendCommand (byte[] apdu)
 Encrypts and sends given apdu command, returns decrypted response. More...
 
void Dispose ()
 

Public Attributes

bool IsSessionActive => _sessionStatus == SessionStatus.Established
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Additional Inherited Members

- Properties inherited from HidGlobal.OK.Readers.SecureSession.ISecureChannel
bool IsSessionActive [get]
 True if secure channel is established. More...
 

Member Function Documentation

◆ Establish() [1/2]

void HidGlobal.OK.Readers.SecureSession.SecureChannel.Establish ( string  sessionKey,
byte  sessionKeySlotNumber 
)

Establish secure channel with given key and access wrights defined by key slot.

Parameters
sessionKey
sessionKeySlotNumber

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

◆ Establish() [2/2]

void HidGlobal.OK.Readers.SecureSession.SecureChannel.Establish ( byte []  sessionKey,
byte  sessionKeySlotNumber 
)

Establish secure channel with given key and access wrights defined by key slot.

Parameters
sessionKey
sessionKeySlotNumber

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

◆ SendCommand() [1/2]

string HidGlobal.OK.Readers.SecureSession.SecureChannel.SendCommand ( string  apdu)

Encrypts and sends given apdu command, returns decrypted response.

Encrypts and send given command. Returns decrypted response.

Parameters
apdu
Returns

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

◆ SendCommand() [2/2]

byte [] HidGlobal.OK.Readers.SecureSession.SecureChannel.SendCommand ( byte []  apdu)

Encrypts and sends given apdu command, returns decrypted response.

Encrypts and send given command. Returns decrypted response.

Parameters
apdu
Returns

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

◆ Terminate()

void HidGlobal.OK.Readers.SecureSession.SecureChannel.Terminate ( )

Terminates established secure channel

Closes current channel.

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.


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