SetSignatureFieldSeedValue

Bảo mật và chữ ký

Mô tả

Tạo hoặc thay dictionary /SV seed-value của một trường chữ ký chưa ký, và chọn các ràng buộc mà một thao tác ký phải thực thi

Cú pháp

Delphi

Function TPDFlib.SetSignatureFieldSeedValue(Index, Flags: Integer; Const SubFilters, DigestMethods, Reasons: WideString; Const LegalAttestations: WideString= ''): Integer;

ActiveX

Function PDFlib::SetSignatureFieldSeedValue(Index As Long, Flags As Long, SubFilters As String, DigestMethods As String, Reasons As String) As Long

DLL

int DLSetSignatureFieldSeedValue(int InstanceID, int Index, int Flags, const wchar_t* SubFilters, const wchar_t* DigestMethods, const wchar_t* Reasons);

Tham số

IndexOne-based form-field index identifying an unsigned signature field
FlagsMặt nạ bit chọn các ràng buộc bắt buộc: 1 bộ lọc, 2 SubFilter, 4 phiên bản giá trị hạt giống, 8 lý do, 16 xác nhận pháp lý, 32 thông tin thu hồi và 64 phương thức băm
SubFiltersSemicolon-delimited allowed SubFilter names such as ETSI.CAdES.detached or adbe.pkcs7.detached
DigestMethodsCác tên digest được phép, phân tách bằng chấm phẩy: SHA1, SHA256, SHA384, SHA512, SHA3-256, SHA3-384 hay SHA3-512
ReasonsCác lý do ký được phép, phân tách bằng chấm phẩy; danh sách rỗng hay . cấm lý do tùy chỉnh khi cờ lý do là bắt buộc
LegalAttestationsCác tên xác nhận pháp lý được phép, phân tách bằng chấm phẩy, cho ràng buộc seed-value /LegalAttestation; mặc định rỗng. Phần mở rộng API Delphi, không phơi qua tầng DLL hay ActiveX

Giá trị trả về

1Dictionary seed-value đã được ghi
0Trường, cờ hoặc danh sách giá trị bắt buộc không hợp lệ

Ghi chú

Phương thức ghi seed-value version 2 và filter Adobe.PPKLite

Các ràng buộc bắt buộc mà bản phát hành này chưa thực thi được sẽ bị từ chối khi dictionary được soạn, và fail-closed khi đọc từ một PDF có sẵn

Biến thể DLL ANSI là DLSetSignatureFieldSeedValueA

Xem thêm

AddSignatureFieldSeedCertificate, ClearSignatureFieldSeedValue, GetSignProcessSeedValueError