Returns the last plugin error code captured during initialization
Optionalcallback: (status: { connected: number[]; disconnected: number[] }) => voidThe function is called when a token is connected or disconnected. An object with properties {connected, disconnected} is passed as arguments, which contains arrays with identifiers of disconnected and connected tokens.
OptionalerrorCallback: (error: PCError | undefined) => voidThe function is called when an error occurs during connection status polling.
Optionaloptions: { dev?: boolean; rutokenOnly?: boolean; unixTime?: number } = {}SDK initialization options.
Optionaldev?: booleanEnable verbose development logging.
OptionalrutokenOnly?: booleanUse Rutoken as the only key storage.
OptionalunixTime?: numberCustom time source as a Unix timestamp in seconds. If omitted, time is synchronized via NTP (use.ntpjs.org). Pass 0 to use the local machine time. If an invalid value is provided, the SDK logs a warning and falls back to the local machine time without throwing an error.
Whether PCSDK is properly initialized
Checking the activity of the Rutoken
The scenario of using only the Rutoken plugin is enabled
PCSDK SDK main class