AddPAdESDSSCertificateFromURL

Digital signatures

Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

Description

Downloads a certificate and files it in the document security store

Syntax

Delphi

Function TPDFlib.AddPAdESDSSCertificateFromURL(DSSProcessID: Integer; Const URL: WideString): Integer; Virtual;

ActiveX

Function PDFlib::AddPAdESDSSCertificateFromURL(DSSProcessID As Long, URL As String) As Long

DLL

int DLAddPAdESDSSCertificateFromURL(int InstanceID, int DSSProcessID, const wchar_t* URL);
int DLAddPAdESDSSCertificateFromURLA(int InstanceID, int DSSProcessID, const char* URL);

Parameters

DSSProcessIDA DSS process created by one of the NewPAdESDSSProcess functions
URLThe http, https or ldap address to download from

Return values

1The material was downloaded and added
0The download or the insertion failed; GetTimeStampError carries the reason

Remarks

Equivalent to FetchRevocationMaterial followed by AddPAdESDSSCertificate, which remain available when the material comes from somewhere other than a URL

See also

FetchRevocationMaterial, AddPAdESDSSCertificate