Patent ID: 7418717

Claim:
A computer implemented method, comprising: exposing, to an application, an interface that comprises a first method; detecting a first invocation of the first method by the application, wherein the first invocation specifies a first Smart Card-accessing device, a first type of event, and a first function; in response to detecting the first invocation of the first method, performing steps comprising: determining whether the first type of event is a type of event that occurs when a reset command is sent to a Smart Card-accessing device; and if the first type of event is a type of event that occurs when a reset command is sent to a Smart Card-accessing device, then starting a first mechanism that executes the first function each time that the first Smart Card-accessing device receives a reset command; detecting a second invocation of the first method by the application, wherein the second invocation specifies a second type of event, a second function, and the first Smart Card-accessing device; and in response to detecting the second invocation of the first method, starting a second mechanism that executes the second function each time that an event of the second type of event occurs relative to the first Smart Card-accessing device, wherein the second mechanism is separate from the first mechanism.