SecureBlackbox 2020 Node.js Edition

Questions / Feedback?

Profile Property

Specifies a pre-defined profile to apply when creating the signature.

Syntax

 pdfsigner.getProfile([callback])
 pdfsigner.setProfile( profile, [callback])

Default Value

""

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getProfile([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setProfile([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Advanced signatures come in many variants, which are often defined by parties that needs to process them or by local standards. SecureBlackbox profiles are sets of pre-defined configurations which correspond to particular signature variants. By specifying a profile, you are pre-configuring the component to make it produce the signature that matches the configuration corresponding to that profile.

Supported profiles:

"BR.AD_RB_v1_0"Brazilian signature with Basic Reference (AD-RB) version 1.0
"BR.AD_RB_v1_1"Brazilian signature with Basic Reference (AD-RB) version 1.1
"BR.AD_RT_v1_0"Brazilian signature with Time Reference (AD-RT) version 1.0
"BR.AD_RT_v1_1"Brazilian signature with Time Reference (AD-RT) version 1.1
"BR.AD_RC_v1_1"Brazilian signature with Complete References (AD-RC) version 1.1
"BR.AD_RC_v1_2"Brazilian signature with Complete References (AD-RC) version 1.2
"BR.AD_RA_v1_1"Brazilian signature with References for Archiving (AD-RA) version 1.1
"BR.AD_RA_v1_2"Brazilian signature with References for Archiving (AD-RA) version 1.2
"PAdES.BASELINE-B"PAdES B-B level (ETSI TS 103 172 v2.1.1 Baseline Profile)
"PAdES.BASELINE-T"PAdES B-T level
"PAdES.BASELINE-LT.Update"PAdES B-LT level
"PAdES.BASELINE-LTA.Update"PAdES B-LTA level

"PAdES.BASELINE-B" profile equivalent to the following settings:

Signer.Signature.Level = PDFSignatureLevels.pslBES;
Signer.Config("AutoCollectRevocationInfo=false");
This code uses PAdES-BES form (signature that do not incorporate signature-policy-identifier). Alternatively, you can use PAdES-EPES form (signature that do incorporate signature-policy-identifier) with the following code modification:
Signer.Signature.Level = PDFSignatureLevels.pslEPES;

"PAdES.BASELINE-T" profile extends "PAdES.BASELINE-B" profile with the following settings:

Signer.TimestampServer = "https://freetsa.org/tsr";

"PAdES.BASELINE-LT.Update" profile is applied in Update method. It extends the signature created using PAdES B-T level ("PAdES.BASELINE-T" profile).

Signer.Config("AutoCollectRevocationInfo=true");

"PAdES.BASELINE-LTA.Update" profile is applied in Update method. It extends the signature created using PAdES B-T level ("PAdES.BASELINE-T" profile).

Signer.Config("AutoCollectRevocationInfo=true");
Signer.TimestampServer = "https://freetsa.org/tsr";

Data Type

String

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