Pdftools SDK
|
Go to the source code of this file.
#define PDFTOOLS_CALL |
#define PdfToolsCryptoProvidersGlobalSignDss_Session_CreateSignatureForDynamicIdentity PdfToolsCryptoProvidersGlobalSignDss_Session_CreateSignatureForDynamicIdentityA |
#define PdfToolsCryptoProvidersGlobalSignDss_Session_New PdfToolsCryptoProvidersGlobalSignDss_Session_NewA |
PDFTOOLS_EXPORT TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration *PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_Session_CreateSignatureForDynamicIdentityA | ( | TPdfToolsCryptoProvidersGlobalSignDss_Session * | pSession, |
const char * | szIdentity ) |
Create a signing certificate for an account with a dynamic identity.
[in,out] | pSession | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_Session. |
[in] | szIdentity | The dynamic identity as JSON string. Example: { "subject_dn": {"common_name": "John Doe" } } |
NULL
if there is an error. NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration *PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_Session_CreateSignatureForDynamicIdentityW | ( | TPdfToolsCryptoProvidersGlobalSignDss_Session * | pSession, |
const WCHAR * | szIdentity ) |
Create a signing certificate for an account with a dynamic identity.
[in,out] | pSession | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_Session. |
[in] | szIdentity | The dynamic identity as JSON string. Example: { "subject_dn": {"common_name": "John Doe" } } |
NULL
if there is an error. NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration *PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_Session_CreateSignatureForStaticIdentity | ( | TPdfToolsCryptoProvidersGlobalSignDss_Session * | pSession | ) |
Create a signing certificate for an account with a static identity The returned signature configuration can be used for multiple signature operations.
[in,out] | pSession | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_Session. |
NULL
if there is an error. NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsCryptoProvidersGlobalSignDss_TimestampConfiguration *PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_Session_CreateTimestamp | ( | TPdfToolsCryptoProvidersGlobalSignDss_Session * | pSession | ) |
Create a time-stamp configuration.
[in,out] | pSession | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_Session. |
NULL
if there is an error. NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsCryptoProvidersGlobalSignDss_Session *PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_Session_NewA | ( | const char * | szUrl, |
const char * | szApi_key, | ||
const char * | szApi_secret, | ||
TPdfTools_HttpClientHandler * | pHttpClientHandler ) |
Establish a session to the service.
[in] | szUrl | The URL to the service endpoint. Typically: https://emea.api.dss.globalsign.com:8443 |
[in] | szApi_key | Your account credentials’ key parameter for the login request. |
[in] | szApi_secret | Your account credentials’ secret parameter for the login request. |
[in,out] | pHttpClientHandler | The SSL configuration with the client certificate and trust store. Use PdfTools_HttpClientHandler_SetClientCertificateAndKey to set your SSL client certificate "clientcert.crt" and private key "privateKey.key" of your GlobalSign account. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsCryptoProvidersGlobalSignDss_Session *PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_Session_NewW | ( | const WCHAR * | szUrl, |
const WCHAR * | szApi_key, | ||
const WCHAR * | szApi_secret, | ||
TPdfTools_HttpClientHandler * | pHttpClientHandler ) |
Establish a session to the service.
[in] | szUrl | The URL to the service endpoint. Typically: https://emea.api.dss.globalsign.com:8443 |
[in] | szApi_key | Your account credentials’ key parameter for the login request. |
[in] | szApi_secret | Your account credentials’ secret parameter for the login request. |
[in,out] | pHttpClientHandler | The SSL configuration with the client certificate and trust store. Use PdfTools_HttpClientHandler_SetClientCertificateAndKey to set your SSL client certificate "clientcert.crt" and private key "privateKey.key" of your GlobalSign account. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_GetAddTimestamp | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration | ) |
Whether to add a trusted time-stamp to the signature Default: FALSE.
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
May indicate an error in certain scenarios. For further information see the note section below.
PDFTOOLS_EXPORT TPdfToolsCrypto_HashAlgorithm PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_GetHashAlgorithm | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration | ) |
The message digest algorithm.
The algorithm used to hash the document and from which the cryptographic signature is created.
Value: ePdfToolsCrypto_HashAlgorithm_Sha256.
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsCrypto_SignatureFormat PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_GetSignatureFormat | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration | ) |
The format (encoding) of the cryptographic signature Default: ePdfToolsCrypto_SignatureFormat_EtsiCadesDetached.
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsCrypto_SignaturePaddingType PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_GetSignaturePaddingType | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration | ) |
The padding type of the cryptographic signature Value: ePdfToolsCrypto_SignaturePaddingType_RsaRsa.
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsCrypto_ValidationInformation PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_GetValidationInformation | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration | ) |
Whether to add validation information (LTV)
Note: This has no effect for signing certificates that do not offer revocation information.
Default: ePdfToolsCrypto_ValidationInformation_EmbedInDocument
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_SetAddTimestamp | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration, |
BOOL | bAddTimestamp ) |
Whether to add a trusted time-stamp to the signature Default: FALSE.
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
[in] | bAddTimestamp | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_SetSignatureFormat | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration, |
TPdfToolsCrypto_SignatureFormat | iSignatureFormat ) |
The format (encoding) of the cryptographic signature Default: ePdfToolsCrypto_SignatureFormat_EtsiCadesDetached.
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
[in] | iSignatureFormat | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration_SetValidationInformation | ( | TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration * | pSignatureConfiguration, |
TPdfToolsCrypto_ValidationInformation | iValidationInformation ) |
Whether to add validation information (LTV)
Note: This has no effect for signing certificates that do not offer revocation information.
Default: ePdfToolsCrypto_ValidationInformation_EmbedInDocument
[in,out] | pSignatureConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_SignatureConfiguration. |
[in] | iValidationInformation | Set value. |
PDFTOOLS_EXPORT TPdfToolsCrypto_HashAlgorithm PDFTOOLS_CALL PdfToolsCryptoProvidersGlobalSignDss_TimestampConfiguration_GetHashAlgorithm | ( | TPdfToolsCryptoProvidersGlobalSignDss_TimestampConfiguration * | pTimestampConfiguration | ) |
The message digest algorithm.
The algorithm used to hash the document and from which the time-stamp is created.
Value: ePdfToolsCrypto_HashAlgorithm_Sha256.
[in,out] | pTimestampConfiguration | Acts as a handle to the native object of type TPdfToolsCryptoProvidersGlobalSignDss_TimestampConfiguration. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.