Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature constructor
Contents
[
Hide
]DigitalSignature::DigitalSignature(const Vector <uint8_t>&, const U16String&, const U16String&, const Date&) constructor
Constructor of DigitalSignature.
Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature(const Vector<uint8_t> &rawData, const U16String &password, const U16String &comments, const Date &signTime)
Parameter | Type | Description |
---|---|---|
rawData | const Vector <uint8_t>& | A byte array containing data from an X.509 certificate. |
password | const U16String& | The password required to access the X.509 certificate data. |
comments | const U16String& | The purpose to signature. |
signTime | const Date& | The utc time when the document was signed. |
Examples
Aspose::Cells::Startup();
//The following example shows how to create digital signature.
//signature collection contains one or more signature needed to sign
DigitalSignatureCollection dsc;
//A byte array containing data from an X.509 certificate.
Vector<uint8_t> data{ 0 };//Note: You need to read the data into this variable.
U16String pwd = "123456";//The password required to access the X.509 certificate data.
U16String comment = "test for sign";//The purpose to signature.
Date dtUtc{ 2023,10,10,5,30,12 };//The utc time when the document was signed.
DigitalSignature ds(data, pwd, comment, dtUtc);
dsc.Add(ds);
Workbook wb;
//set all signatures to workbook
wb.SetDigitalSignature(dsc);
wb.Save(u"newfile.xlsx");
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class U16String
- Class DigitalSignature
- Namespace Aspose::Cells::DigitalSignatures
- Library Aspose.Cells for C++
DigitalSignature::DigitalSignature(const Vector <uint8_t>&, const char16_t*, const char16_t*, const Date&) constructor
Constructor of DigitalSignature.
Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature(const Vector<uint8_t> &rawData, const char16_t *password, const char16_t *comments, const Date &signTime)
Parameter | Type | Description |
---|---|---|
rawData | const Vector <uint8_t>& | A byte array containing data from an X.509 certificate. |
password | const char16_t* | The password required to access the X.509 certificate data. |
comments | const char16_t* | The purpose to signature. |
signTime | const Date& | The utc time when the document was signed. |
Examples
Aspose::Cells::Startup();
//The following example shows how to create digital signature.
//signature collection contains one or more signature needed to sign
DigitalSignatureCollection dsc;
//A byte array containing data from an X.509 certificate.
Vector<uint8_t> data{0};//Note: You need to read the data into this variable.
Date dtUtc{2023,10,10,5,30,12};//The utc time when the document was signed.
DigitalSignature ds(data,"123456", "test for sign", dtUtc); //123456 is password of cert
dsc.Add(ds);
Workbook wb;
//set all signatures to workbook
wb.SetDigitalSignature(dsc);
wb.Save(u"newfile.xlsx");
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class DigitalSignature
- Namespace Aspose::Cells::DigitalSignatures
- Library Aspose.Cells for C++
DigitalSignature::DigitalSignature(const U16String&, const U16String&, const U16String&, const Date&) constructor
Constructor of DigitalSignature.
Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature(const U16String &fileName, const U16String &password, const U16String &comments, const Date &signTime)
Parameter | Type | Description |
---|---|---|
fileName | const U16String& | The name of a certificate file. |
password | const U16String& | The password required to access the X.509 certificate data. |
comments | const U16String& | The purpose to signature. |
signTime | const Date& | The utc time when the document was signed. |
See Also
- Class Vector
- Class U16String
- Class DigitalSignature
- Namespace Aspose::Cells::DigitalSignatures
- Library Aspose.Cells for C++
DigitalSignature::DigitalSignature(const char16_t*, const char16_t*, const char16_t*, const Date&) constructor
Constructor of DigitalSignature.
Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature(const char16_t *fileName, const char16_t *password, const char16_t *comments, const Date &signTime)
Parameter | Type | Description |
---|---|---|
fileName | const char16_t* | The name of a certificate file. |
password | const char16_t* | The password required to access the X.509 certificate data. |
comments | const char16_t* | The purpose to signature. |
signTime | const Date& | The utc time when the document was signed. |
See Also
- Class Vector
- Class DigitalSignature
- Namespace Aspose::Cells::DigitalSignatures
- Library Aspose.Cells for C++
DigitalSignature::DigitalSignature(DigitalSignature_Impl*) constructor
Constructs from an implementation object.
Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature(DigitalSignature_Impl *impl)
See Also
- Class Vector
- Class DigitalSignature
- Namespace Aspose::Cells::DigitalSignatures
- Library Aspose.Cells for C++
DigitalSignature::DigitalSignature(const DigitalSignature&) constructor
Copy constructor.
Aspose::Cells::DigitalSignatures::DigitalSignature::DigitalSignature(const DigitalSignature &src)
See Also
- Class Vector
- Class DigitalSignature
- Class DigitalSignature
- Namespace Aspose::Cells::DigitalSignatures
- Library Aspose.Cells for C++