Resource Management Overview and Specifications
It is agreed that resourceId is used to uniquely identify a resource in external key management extensions (such as Ukey). Currently, resourceId can be returned through certification query. Each certificate chain corresponds to one resourceId. After obtaining resourceId, the application need to open the resource before performing subsequent key operations. After the operations are complete, the application need to close the resource.
NOTE
- Before operating a key, the resource must be opened. To perform high-permission operations such as private key signing, you must complete the PIN verification. Otherwise, the resource status is abnormal.
- After user operations are complete, the application must close the resource to avoid resource leakage.