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

Public Member Functions

 SamSecureSession (ISmartCardReader smartCardReader)
 
void Establish (byte[] masterKey, byte keyNumber)
 Establish secure channel with given key and access wrights defined by key slot. More...
 
void Establish (string masterKey, byte keyNumber)
 Establish secure channel with given key and access wrights defined by key slot. More...
 
void Terminate ()
 Closes current channel. More...
 
string SendCommand (string command)
 Encrypts and send given command. Returns decrypted response. More...
 
byte [] SendCommand (byte[] command)
 Encrypts and send given command. Returns decrypted response. More...
 
void Dispose ()
 

Properties

bool IsSessionActive [get]
 True if Secure Session is Established. More...
 
- 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.SamSecureSession.SamSecureSession.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.

◆ Establish() [2/2]

void HidGlobal.OK.Readers.SecureSession.SamSecureSession.SamSecureSession.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.

◆ SendCommand() [1/2]

string HidGlobal.OK.Readers.SecureSession.SamSecureSession.SamSecureSession.SendCommand ( string  command)

Encrypts and send given command. Returns decrypted response.

Parameters
command
Returns

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

◆ SendCommand() [2/2]

byte [] HidGlobal.OK.Readers.SecureSession.SamSecureSession.SamSecureSession.SendCommand ( byte []  command)

Encrypts and send given command. Returns decrypted response.

Parameters
command
Returns

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

◆ Terminate()

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

Closes current channel.

Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.

Property Documentation

◆ IsSessionActive

bool HidGlobal.OK.Readers.SecureSession.SamSecureSession.SamSecureSession.IsSessionActive
get

True if Secure Session is Established.


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