Pdftools SDK
|
Go to the source code of this file.
Functions | |
PDFTOOLS_EXPORT TPdfToolsCryptoProviders_ProviderType PDFTOOLS_CALL | PdfToolsCryptoProviders_Provider_GetType (TPdfToolsCryptoProviders_Provider *pProvider) |
Get actual derived type of base type TPdfToolsCryptoProviders_Provider. | |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsCryptoProviders_Provider_Close (TPdfToolsCryptoProviders_Provider *pObject) |
Close object. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetNameA (TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize) |
The name (subject) of the certificate The common name (CN) of the person or authority who owns the certificate. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetNameW (TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize) |
The name (subject) of the certificate The common name (CN) of the person or authority who owns the certificate. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetSubjectA (TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize) |
The subject of the certificate The distinguished name (DN) of the person or authority who owns the certificate. Formatted according to RFC 4514. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetSubjectW (TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize) |
The subject of the certificate The distinguished name (DN) of the person or authority who owns the certificate. Formatted according to RFC 4514. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetIssuerA (TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize) |
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) who issued the certificate. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetIssuerW (TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize) |
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) who issued the certificate. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetFingerprintA (TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize) |
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest. | |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetFingerprintW (TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize) |
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest. | |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsCryptoProviders_Certificate_GetHasPrivateKey (TPdfToolsCryptoProviders_Certificate *pCertificate) |
Whether the cryptographic provider has a private key for the certificate. Note that whether the private key is found and whether it can actually be used for signing may depend on the provider's login state. | |
PDFTOOLS_EXPORT int PDFTOOLS_CALL | PdfToolsCryptoProviders_CertificateList_GetCount (TPdfToolsCryptoProviders_CertificateList *pCertificateList) |
Get the number of elements in the list. | |
PDFTOOLS_EXPORT TPdfToolsCryptoProviders_Certificate *PDFTOOLS_CALL | PdfToolsCryptoProviders_CertificateList_Get (TPdfToolsCryptoProviders_CertificateList *pCertificateList, int iIndex) |
Returns the element at the specified position in the given list. | |
#define PDFTOOLS_CALL |
#define PdfToolsCryptoProviders_Certificate_GetFingerprint PdfToolsCryptoProviders_Certificate_GetFingerprintA |
#define PdfToolsCryptoProviders_Certificate_GetIssuer PdfToolsCryptoProviders_Certificate_GetIssuerA |
#define PdfToolsCryptoProviders_Certificate_GetName PdfToolsCryptoProviders_Certificate_GetNameA |
#define PdfToolsCryptoProviders_Certificate_GetSubject PdfToolsCryptoProviders_Certificate_GetSubjectA |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetFingerprintA | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetFingerprintW | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetHasPrivateKey | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate | ) |
Whether the cryptographic provider has a private key for the certificate. Note that whether the private key is found and whether it can actually be used for signing may depend on the provider's login state.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
May indicate an error in certain scenarios. For further information see the note section below.
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetIssuerA | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) who issued the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetIssuerW | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) who issued the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetNameA | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The name (subject) of the certificate The common name (CN) of the person or authority who owns the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetNameW | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The name (subject) of the certificate The common name (CN) of the person or authority who owns the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetSubjectA | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The subject of the certificate The distinguished name (DN) of the person or authority who owns the certificate. Formatted according to RFC 4514.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetSubjectW | ( | TPdfToolsCryptoProviders_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The subject of the certificate The distinguished name (DN) of the person or authority who owns the certificate. Formatted according to RFC 4514.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsCryptoProviders_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsCryptoProviders_Certificate *PDFTOOLS_CALL PdfToolsCryptoProviders_CertificateList_Get | ( | TPdfToolsCryptoProviders_CertificateList * | pCertificateList, |
int | iIndex ) |
Returns the element at the specified position in the given list.
[in,out] | pCertificateList | Acts as a handle to the native object of type TPdfToolsCryptoProviders_CertificateList. |
[in] | iIndex |
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 int PDFTOOLS_CALL PdfToolsCryptoProviders_CertificateList_GetCount | ( | TPdfToolsCryptoProviders_CertificateList * | pCertificateList | ) |
Get the number of elements in the list.
[in,out] | pCertificateList | Acts as a handle to the native object of type TPdfToolsCryptoProviders_CertificateList. |
0
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 PdfToolsCryptoProviders_Provider_Close | ( | TPdfToolsCryptoProviders_Provider * | pObject | ) |
Close object.
Close disposable objects by invoking this function.
[in] | pObject | Disposable object. |
PDFTOOLS_EXPORT TPdfToolsCryptoProviders_ProviderType PDFTOOLS_CALL PdfToolsCryptoProviders_Provider_GetType | ( | TPdfToolsCryptoProviders_Provider * | pProvider | ) |
Get actual derived type of base type TPdfToolsCryptoProviders_Provider.
This function is invoked prior to downcasting to ascertain the derived object type.
[in,out] | pProvider | Acts as a handle to a native object. |
0
in case of an error.0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.