SecureBlackbox 2020 Qt Edition

Questions / Feedback?

Upgrade Method

Upgrades existing XAdES signature to a new form.

Syntax

int Upgrade(int iToForm);

Remarks

XAdES standard defines a number of different 'forms' of signatures which can be used for different purposes. Use this method to upgrade XAdES signature to a new form specified by ToForm. Signatures can normally be upgraded from less sophisticated levels (BES, EPES) to more sophisticated (T, C, X, X-L, A).

Supported forms:

xafUnknown0
xafBasic1XAdES form, supported by XAdES v1.1.1
xafBES2XAdES-BES form, supported starting from XAdES v1.2.2
xafEPES3XAdES-EPES form, supported starting from XAdES v1.2.2
xafT4XAdES-T form
xafC5XAdES-C form
xafX6XAdES-X form
xafXL7XAdES-X-L form
xafA8XAdES-A form
xafExtendedBES9XAdES-E-BES form
xafExtendedEPES10XAdES-E-EPES form
xafExtendedT11XAdES-E-T form
xafExtendedC12XAdES-E-C form
xafExtendedX13XAdES-E-X form
xafExtendedXLong14XAdES-E-X-Long form (type 1)
xafExtendedXL15XAdES-E-X-L form (type 2)
xafExtendedA16XAdES-E-A form

Error Handling

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Qt Edition - Version 20.0 [Build 8154]