SetSignProcessPrivateKeyUI

Segurança e assinaturas

Descrição

Controls whether a certificate-bound CNG private-key provider may display PIN, consent, token, or cloud-approval user interfaces during signing

This setting applies to identities selected through a PFX file, Windows certificate store, or certificate context; explicit CNG key APIs carry their own AllowUI parameter

Sintaxe

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);

Parâmetros

SignProcessIDValor retornado por uma função NewSignProcessFrom*
AllowUITrue or nonzero to allow provider interaction, false or zero to require silent signing

Valores retornados

1The setting was stored
0The process id was invalid

Observações

O modo silencioso continua sendo o padrão, para que serviços não assistidos não bloqueiem em uma janela de provider inesperada

Interactive mode routes RSA and ECDSA detached signatures through NCrypt and omits NCRYPT_SILENT_FLAG

Veja também

SetSignProcessCNGKey, SetSignProcessCertFromStore