Information about a signature field returned by SignDocDocument::getSignature(). More...
#include <SignDocSDK-cpp.h>
Public Member Functions | |
~SignDocSignature () | |
Destructor. | |
std::string | getFieldName (Encoding aEncoding) const |
Get the name of the signature field. | |
const char * | getFieldNameUTF8 () const |
Get the name of the signature field as UTF-8-encoded C string. | |
int | getFieldPage () const |
Get the page number of the signature field. | |
SignDocField::SignatureType | getSignatureType () const |
Get the type of the signature. | |
int | getClearedIndex () const |
Get the index of the signature at which this signature has been removed. | |
int | getDocMDP () const |
Get the DocMDP P value of a certification signature. | |
int | getLockMDP () const |
Get the lock MDP value. | |
bool | getSigningCertificate (std::vector< unsigned char > &aOutput) const |
Get the signing certificate as DER-encoded blob. | |
std::string | getSignerCommonName (Encoding aEncoding) const |
Get the common name from the signing certificate. | |
const char * | getSignerCommonNameUTF8 () const |
Get the common name from the signing certificate as UTF-8-encoded C string. | |
std::string | getSignerEmail (Encoding aEncoding) const |
Get the email address from the signing certificate. | |
const char * | getSignerEmailUTF8 () const |
Get the email address from the signing certificate as UTF-8-encoded C string. | |
const char * | getTimeStamp () const |
Get the time stamp of the signature. | |
int | getChangeCount () const |
Get the number of changes that have been made after this signature. | |
bool | getChange (int aIndex, std::auto_ptr< SignDocChange > &aOutput) const |
Get a SignDocChange object for a change. | |
int | getBiometricEncryption () const |
Get the encryption method used for biometric data of the signature field. | |
SignDocSignature (SIGNDOC_Signature *aP) | |
Internal function. | |
SIGNDOC_Signature * | getImpl () |
Internal function. | |
const SIGNDOC_Signature * | getImpl () const |
Internal function. | |
void | setImpl (SIGNDOC_Signature *aP) |
Internal function. | |
Protected Member Functions | |
SignDocSignature () | |
Constructor (unavailable). |
Information about a signature field returned by SignDocDocument::getSignature().
The SignDocDocument object must live longer than any SignDocSignature objects returned by its getSignature() function.
de::softpro::doc::SignDocSignature::~SignDocSignature | ( | ) | [inline] |
Destructor.
de::softpro::doc::SignDocSignature::SignDocSignature | ( | ) | [inline, protected] |
Constructor (unavailable).
de::softpro::doc::SignDocSignature::SignDocSignature | ( | SIGNDOC_Signature * | aP ) | [inline] |
Internal function.
int de::softpro::doc::SignDocSignature::getBiometricEncryption | ( | ) | const [inline] |
Get the encryption method used for biometric data of the signature field.
bool de::softpro::doc::SignDocSignature::getChange | ( | int | aIndex, |
std::auto_ptr< SignDocChange > & | aOutput | ||
) | const [inline] |
Get a SignDocChange object for a change.
[in] | aIndex | The zero-based index of the change. |
[out] | aOutput | A pointer to the new SignDocChange object will be stored here. The caller is responsible for destroying the object. |
int de::softpro::doc::SignDocSignature::getChangeCount | ( | ) | const [inline] |
Get the number of changes that have been made after this signature.
For PDF documents, you can find out what changes have been made to the document between this signature and the next one (or after the last signature if this is the last signature).
Computing the changes can be expensive.
Changes are not reported in any particular order; before presenting them to a user, you should group them.
Detecting and categorizing changes is work in progress. Moreover, it will never be bug-compatible with Adobe products.
int de::softpro::doc::SignDocSignature::getClearedIndex | ( | ) | const [inline] |
Get the index of the signature at which this signature has been removed.
This function always returns -1 for TIFF document.
int de::softpro::doc::SignDocSignature::getDocMDP | ( | ) | const [inline] |
Get the DocMDP P value of a certification signature.
The MDP P value specifies what modifications to the document are allowed by the certification signature.
std::string de::softpro::doc::SignDocSignature::getFieldName | ( | Encoding | aEncoding ) | const [inline] |
Get the name of the signature field.
This function throws std::runtime_error if the name cannot be represented using the specified encoding.
[in] | aEncoding | The encoding to be used for the return value. |
const char* de::softpro::doc::SignDocSignature::getFieldNameUTF8 | ( | ) | const [inline] |
Get the name of the signature field as UTF-8-encoded C string.
int de::softpro::doc::SignDocSignature::getFieldPage | ( | ) | const [inline] |
Get the page number of the signature field.
SIGNDOC_Signature* de::softpro::doc::SignDocSignature::getImpl | ( | ) | [inline] |
Internal function.
const SIGNDOC_Signature* de::softpro::doc::SignDocSignature::getImpl | ( | ) | const [inline] |
Internal function.
int de::softpro::doc::SignDocSignature::getLockMDP | ( | ) | const [inline] |
Get the lock MDP value.
The lock MDP value specifies what modifications to the document are allowed by the signature lock dictionary.
SignDocField::SignatureType de::softpro::doc::SignDocSignature::getSignatureType | ( | ) | const [inline] |
Get the type of the signature.
std::string de::softpro::doc::SignDocSignature::getSignerCommonName | ( | Encoding | aEncoding ) | const [inline] |
Get the common name from the signing certificate.
This function throws std::runtime_error if the name cannot be represented using the specified encoding.
[in] | aEncoding | The encoding to be used for the return value. |
const char* de::softpro::doc::SignDocSignature::getSignerCommonNameUTF8 | ( | ) | const [inline] |
Get the common name from the signing certificate as UTF-8-encoded C string.
std::string de::softpro::doc::SignDocSignature::getSignerEmail | ( | Encoding | aEncoding ) | const [inline] |
Get the email address from the signing certificate.
This function throws std::runtime_error if the email address cannot be represented using the specified encoding.
[in] | aEncoding | The encoding to be used for the return value. |
const char* de::softpro::doc::SignDocSignature::getSignerEmailUTF8 | ( | ) | const [inline] |
Get the email address from the signing certificate as UTF-8-encoded C string.
bool de::softpro::doc::SignDocSignature::getSigningCertificate | ( | std::vector< unsigned char > & | aOutput ) | const [inline] |
Get the signing certificate as DER-encoded blob.
[out] | aOutput | The DER-encoded signing certificate will be stored here. |
const char* de::softpro::doc::SignDocSignature::getTimeStamp | ( | ) | const [inline] |
Get the time stamp of the signature.
You have to use SignDocDocument::verifySignature2() to find out whether the time stamp can be trusted.
void de::softpro::doc::SignDocSignature::setImpl | ( | SIGNDOC_Signature * | aP ) | [inline] |
Internal function.