Device & Token Management

Full reference for DSC token detection, health monitoring, and vendor identification on Mobile App and Desktop Software.

All features supported

Every device and token capability listed below is implemented and working in SecureSign Mobile App and Desktop Software (Windows, Linux, macOS). Your portal receives token metadata via deep link callbacks — never raw USB access.

Overview

SecureSign detects USB DSC tokens, identifies the vendor, monitors connection health, and handles hot-plug events inside the product layer. Portals do not embed PKCS#11 drivers or vendor applets.

  • Mobile App — OTG USB detection on Android; token selection in app UI.
  • Desktop Software — local CCID/PKCS#11 drivers inside the product; token metadata returned in callback payload.
  • REST API — device registry via GET /devices and POST /devices for audit and multi-device tenants.

Platform Support

FeatureMobile AppDesktop SoftwareREST API
Detect DSC TokenSupportedSupported
Detect Multiple TokensSupportedSupported
Token InformationCallback payloadCallback payloadGET /devices
Vendor DetectionvendorNamevendorNamePOST /devices
VID/PID DetectionvendorId, productIdvendorId, productIdPOST /devices
Token Health CheckApp UIDesktop Software UI
Connection StatusFlow eventsCallback / UI
USB Hot PlugSupportedSupported
Token RemovalDISCONNECTED eventDisconnect handler
Vendor ValidationCCA vendor adaptersCCA vendor adapters

TokenInfo Model

Returned when a token is detected or registered. All fields are optional except where noted.

FieldTypeDescription
vendorIdnumberUSB vendor ID (hex, e.g. 1321)
productIdnumberUSB product ID
manufacturerstringUSB manufacturer string from descriptor
productNamestringUSB product name (e.g. DSC Token)
serialNumberstringToken hardware serial
vendorNamestringResolved CA vendor (e.g. eMudhra, Capricorn)
connectionStatusstringCONNECTED, DISCONNECTED, or ERROR
slotIndexnumberPKCS#11 slot when multiple slots present
certificateCountnumberNumber of signing certificates on token

Supported DSC Vendors (India)

SecureSign supports USB DSC tokens issued by Certifying Authorities (CAs) licensed by the Controller of Certifying Authorities (CCA), Government of India. Class 2 and Class 3 certificates from the following providers are supported:

Certifying Authority (CA)Notes
eMudhra
Capricorn
(n)Code Solutions
GNFC
VSignVerasys Technologies
IDSign
SignX
Pantasign
XtraTrust
SafeScryptSify Technologies
CDSL Ventures
ProDigiSign
Care4Sign
CSCCommon Service Centre
NICGovernment entities only

CCA-licensed tokens only

SecureSign validates certificate chains against CCA root CAs. Tokens from unlicensed or expired CA programs are rejected during certificate validation.

Vendor adapters detect the connected token automatically and apply the correct PKCS#11 / CCID driver path. No separate emSigner, Java applet, or per-vendor browser extension is required.

Examples

Desktop Software — health check

const params = new URLSearchParams({
  requestId: crypto.randomUUID(),
  hashBase64: sha256Base64,
  hashAlgo: 'SHA256',
  documentType: 'hash',
  callbackUrl: 'https://portal.example.gov.in/sign/callback',
  apiKey: 'ss_live_abc123xyz'
});
window.location.href = `securesign://sign?${params}`;

Health response

{
  "status": "ok",
  "version": "2.17.1",
  "tokenConnected": true,
  "tokenInfo": {
    "vendorId": 1321,
    "productId": 5678,
    "manufacturer": "eMudhra",
    "productName": "DSC Token",
    "serialNumber": "ABC123",
    "vendorName": "eMudhra",
    "connectionStatus": "CONNECTED",
    "certificateCount": 1
  }
}

Mobile App — token info in sign callback

{
  "requestId": "a1b2c3d4",
  "status": "SUCCESS",
  "signatureBase64": "MEUCIQD...",
  "tokenInfo": {
    "vendorName": "eMudhra",
    "vendorId": 1321,
    "productId": 5678,
    "serialNumber": "ABC123",
    "connectionStatus": "CONNECTED"
  }
}

Connection Events

Desktop Software and Mobile App emit connection lifecycle events your portal can react to:

EventWhenPortal action
CONNECTEDToken plugged in and initializedEnable sign button; refresh certificate list
DISCONNECTEDToken removed mid-sessionCancel in-flight sign; show reconnect prompt
ERRORDriver or permission failureShow vendor-specific troubleshooting

Response

POST /devices registers a detected token for audit:

{"success":true,"deviceId":"dev_8k2m","data":{"vendorId":1321,"productId":5678,"manufacturer":"eMudhra","vendorName":"eMudhra","connectionStatus":"CONNECTED"}}

Errors

CodeCauseResolution
SS_TOKEN_NOT_FOUNDNo token connectedAsk user to insert DSC token; check USB OTG (mobile)
SS_PERMISSION_DENIEDUSB permission denied (Android)Grant USB permission in Mobile App
SS_DESKTOP_SOFTWARE_NOT_RUNNINGDesktop Software not runningInstall and start SecureSign Desktop Software
SS_VENDOR_UNSUPPORTEDToken not from a supported CCA vendorUse a CCA-licensed DSC token
SS_TOKEN_BUSYAnother signing operation in progressWait for current operation to complete

See also Devices API and Desktop Software API.