|
HID OMNIKEY Smart Card Readers' Sample Codes
0.0.0.116
|
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... | |
| void HidGlobal.OK.Readers.SecureSession.SecureChannel.Establish | ( | string | sessionKey, |
| byte | sessionKeySlotNumber | ||
| ) |
Establish secure channel with given key and access wrights defined by key slot.
| sessionKey | |
| sessionKeySlotNumber |
Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.
| void HidGlobal.OK.Readers.SecureSession.SecureChannel.Establish | ( | byte [] | sessionKey, |
| byte | sessionKeySlotNumber | ||
| ) |
Establish secure channel with given key and access wrights defined by key slot.
| sessionKey | |
| sessionKeySlotNumber |
Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.
| 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.
| apdu |
Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.
| 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.
| apdu |
Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.
| void HidGlobal.OK.Readers.SecureSession.SecureChannel.Terminate | ( | ) |
Terminates established secure channel
Closes current channel.
Implements HidGlobal.OK.Readers.SecureSession.ISecureChannel.