|
HID OMNIKEY Smart Card Readers' Sample Codes
0.0.0.116
|
Object to manage an application context for PC/SC resource manager. More...
Public Member Functions | |
| void | Establish (Scope scope) |
| Establish context handle for winscard resource manager. More... | |
| void | Release () |
| Release context handle established by M:HidGlobal.OK.Readers.ContextHandler.Establish(HidGlobal.OK.Readers.Components.Scope). More... | |
| void | ReEstablish () |
| Establish context handle withT:HidGlobal.OK.Readers.Components.Scope used in previous call ofM:HidGlobal.OK.Readers.ContextHandler.Establish(HidGlobal.OK.Readers.Components.Scope). More... | |
| bool | IsValid () |
| Check if curently held context handle is valid. More... | |
| IReadOnlyList< string > | ListReaders (IReadOnlyList< string > readerGroups) |
| Lists readers within given reader groups. More... | |
| IReadOnlyList< string > | ListReaders () |
| List all available readers. More... | |
| IReadOnlyList< string > | ListReaderGroups () |
| List reader groups existing in the system. More... | |
| void | IntroduceReaderGroup (string groupName) |
| Introduce new reader group to the smart card resource manager. More... | |
| void | ForgetReaderGroup (string groupName) |
| Deletes reader group from smart card resource manager. More... | |
| void | AddReaderToGroup (string readerName, string groupName) |
| Add specified reader to the reader group. Group need to be introduced by M:HidGlobal.OK.Readers.ContextHandler.IntroduceReaderGroup(System.String) beforehand. More... | |
| void | RemoveReaderFromGroup (string readerName, string groupName) |
| Removes reader form the group. More... | |
| void | Cancel () |
| Cancel blocking request of M:HidGlobal.OK.Readers.ContextHandler.GetStatusChange(System.Int32,HidGlobal.OK.Readers.Components.ReaderState[]@). More... | |
| void | IntroduceReader (string readerName, string deviceName) |
| Introduce additional alias of given device to the smart card resource manager. More... | |
| void | ForgetReader (string readerName) |
| Removes reader from the smart card resource manager. More... | |
| IReadOnlyList< ReaderState > | GetStatusChange (int timeout, IReadOnlyList< ReaderState > readerStates) |
| IReadOnlyList< ReaderState > | GetReaderState (IReadOnlyDictionary< string, ReaderStates > readerNamesWithStatesDictionary) |
| ReaderState | GetReaderState (string reader, ReaderStates stateOfTheReader) |
| void | Dispose () |
Static Public Attributes | |
| static IContextHandler | Instance => _instance ?? (_instance = new ContextHandler()) |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
Properties | |
| System.Text.Encoding | Encoding [get, set] |
| IntPtr | Handle [get] |
| Retrives the context handle. More... | |
Properties inherited from HidGlobal.OK.Readers.IContextHandler | |
| IntPtr | Handle [get] |
| Retrives the context handle. More... | |
Object to manage an application context for PC/SC resource manager.
| void HidGlobal.OK.Readers.ContextHandler.AddReaderToGroup | ( | string | readerName, |
| string | groupName | ||
| ) |
Add specified reader to the reader group. Group need to be introduced by M:HidGlobal.OK.Readers.ContextHandler.IntroduceReaderGroup(System.String) beforehand.
Add specified reader to the reader group. Group need to be introduced by IntroduceReaderGroup(string) beforehand.
| readerName | Name of the reader. |
| groupName | Name of the group. |
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.Cancel | ( | ) |
Cancel blocking request of M:HidGlobal.OK.Readers.ContextHandler.GetStatusChange(System.Int32,HidGlobal.OK.Readers.Components.ReaderState[]@).
Cancel blocking request of GetStatusChange(int,ReaderState[]).
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.Establish | ( | Scope | scope | ) |
Establish context handle for winscard resource manager.
Establish context handle for winscard resource manager.
| scope | Defines for the scope input parameter. |
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.ForgetReader | ( | string | readerName | ) |
Removes reader from the smart card resource manager.
Removes reader from the smart card resource manager.
| readerName | Name of the reader. |
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.ForgetReaderGroup | ( | string | groupName | ) |
Deletes reader group from smart card resource manager.
Deletes reader group from smart card resource manager.
| groupName | Name of the reader group. |
Implements HidGlobal.OK.Readers.IContextHandler.
| IReadOnlyList<ReaderState> HidGlobal.OK.Readers.ContextHandler.GetReaderState | ( | IReadOnlyDictionary< string, ReaderStates > | readerNamesWithStatesDictionary | ) |
| readerNamesWithStatesDictionary |
Implements HidGlobal.OK.Readers.IContextHandler.
| ReaderState HidGlobal.OK.Readers.ContextHandler.GetReaderState | ( | string | reader, |
| ReaderStates | stateOfTheReader | ||
| ) |
| reader | |
| stateOfTheReader |
Implements HidGlobal.OK.Readers.IContextHandler.
| IReadOnlyList<ReaderState> HidGlobal.OK.Readers.ContextHandler.GetStatusChange | ( | int | timeout, |
| IReadOnlyList< ReaderState > | readerStates | ||
| ) |
| timeout | |
| readerStates |
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.IntroduceReader | ( | string | readerName, |
| string | deviceName | ||
| ) |
Introduce additional alias of given device to the smart card resource manager.
Introduce additional alias of given device to the smart card resource manager.
| readerName | Additional name for the device. |
| deviceName | Name of the device. |
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.IntroduceReaderGroup | ( | string | groupName | ) |
Introduce new reader group to the smart card resource manager.
Introduce new reader group to the smart card resource manager.
Reader group will be created only after additon of first reader to it.
| groupName | Name of the reader group. |
Implements HidGlobal.OK.Readers.IContextHandler.
| bool HidGlobal.OK.Readers.ContextHandler.IsValid | ( | ) |
Check if curently held context handle is valid.
Check if curently held context handle is valid.
Implements HidGlobal.OK.Readers.IContextHandler.
| IReadOnlyList<string> HidGlobal.OK.Readers.ContextHandler.ListReaderGroups | ( | ) |
List reader groups existing in the system.
List reader groups existing in the system.
Implements HidGlobal.OK.Readers.IContextHandler.
| IReadOnlyList<string> HidGlobal.OK.Readers.ContextHandler.ListReaders | ( | IReadOnlyList< string > | readerGroups | ) |
Lists readers within given reader groups.
Lists readers within given reader groups.
| readerGroups | Names of the reader groups |
Implements HidGlobal.OK.Readers.IContextHandler.
| IReadOnlyList<string> HidGlobal.OK.Readers.ContextHandler.ListReaders | ( | ) |
List all available readers.
List all available readers.
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.ReEstablish | ( | ) |
Establish context handle withT:HidGlobal.OK.Readers.Components.Scope used in previous call ofM:HidGlobal.OK.Readers.ContextHandler.Establish(HidGlobal.OK.Readers.Components.Scope).
Establish context handle with Scope used in previous call of Establish(Scope).
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.Release | ( | ) |
Release context handle established by M:HidGlobal.OK.Readers.ContextHandler.Establish(HidGlobal.OK.Readers.Components.Scope).
Release context handle established by Establish(Scope).
Implements HidGlobal.OK.Readers.IContextHandler.
| void HidGlobal.OK.Readers.ContextHandler.RemoveReaderFromGroup | ( | string | readerName, |
| string | groupName | ||
| ) |
Removes reader form the group.
Removes reader form the group.
| readerName | Name of the reader. |
| groupName | Name of the group. |
Implements HidGlobal.OK.Readers.IContextHandler.
|
get |
Retrives the context handle.