SetSignProcessPrivateKeyUI

安全和签名

描述

控制绑定证书的 CNG 私钥提供程序能否在签名期间显示 PIN、同意、令牌或云批准用户界面

此设置适用于通过 PFX 文件、Windows 证书存储或证书上下文选择的标识;显式的 CNG 密钥 API 自带 AllowUI 参数

语法

Delphi

Function TPDFlib.SetSignProcessPrivateKeyUI(SignProcessID: Integer; AllowUI: Boolean): Integer;

ActiveX

Function PDFlib::SetSignProcessPrivateKeyUI(SignProcessID As Long, AllowUI As Long) As Long

DLL

int DLSetSignProcessPrivateKeyUI(int InstanceID, int SignProcessID, int AllowUI);

参数

SignProcessID由 NewSignProcessFrom* 函数返回的值
AllowUITrue 或非零允许与提供程序交互,false 或零要求静默签名

返回值

1设置已存储
0过程 ID 无效

备注

静默模式仍为默认设置,因此无人值守服务不会被意外出现的提供程序窗口阻塞

交互模式通过 NCrypt 路由 RSA 和 ECDSA 分离签名,并省略 NCRYPT_SILENT_FLAG

另请参阅

SetSignProcessCNGKey, SetSignProcessCertFromStore