SecureBlackbox 2020 Node.js Edition

Questions / Feedback?

Level Property

Returns the CAdES signature level.

Syntax

 cadesverifier.getLevel([callback])

Possible Values

  0 (cslUnknown), 
  1 (cslBES), 
  2 (cslEPES), 
  3 (cslT), 
  4 (cslC), 
  5 (cslXType1), 
  6 (cslXType2), 
  7 (cslXLType1), 
  8 (cslXLType2), 
  9 (cslBaselineB), 
  10 (cslBaselineT), 
  11 (cslBaselineLT), 
  12 (cslBaselineLTA), 
  13 (cslExtendedBES), 
  14 (cslExtendedEPES), 
  15 (cslExtendedT), 
  16 (cslExtendedC), 
  17 (cslExtendedXType1), 
  18 (cslExtendedXType2), 
  19 (cslExtendedXLType1), 
  20 (cslExtendedXLType2), 
  21 (cslExtendedA), 
  22 (cslA)

Default Value

0

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 getLevel([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 setLevel([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

CMS Advanced Electronic Signatures (CAdES) standard defines a number of different 'levels' of signatures which can be used for different purposes. The supported values are:

cslUnknown0Unknown signature level

cslBES1BES (Basic Electronic Signature)

cslEPES2EPES (Electronic Signature with an Explicit Policy)

cslT3T (Timestamped)

cslC4C (T with revocation references)

cslXType15X Type 1 (C with an ES-C timestamp)

cslXType26X Type 2 (C with a CertsAndCRLs timestamp)

cslXLType17XL Type 1 (C with revocation values and an ES-C timestamp)

cslXLType28XL Type 2 (C with revocation values and a CertsAndCRLs timestamp)

cslBaselineB9Baseline B (B-B, basic)

cslBaselineT10Baseline T (B-T, timestamped)

cslBaselineLT11Baseline LT (B-LT, long-term)

cslBaselineLTA12Baseline LTA (B-LTA, long-term with archived timestamp)

cslExtendedBES13Extended BES

cslExtendedEPES14Extended EPES

cslExtendedT15Extended T

cslExtendedC16Extended C

cslExtendedXType117Extended X Type 1

cslExtendedXType218Extended X Type 2

cslExtendedXLType119Extended XL Type 1

cslExtendedXLType220Extended XL Type 2

cslExtendedA21Extended A

cslA22A (archived)

This property is read-only and not available at design time.

Data Type

Integer

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