Timestamp Method
Adds a timestamp to the signature.
Syntax
cadessigner.timestamp(tspType, [callback])
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 this 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
Call this method to add a timestamp to the signature.
Supported values:
cttUnknown | 0 | Unknown timestamp type |
cttGeneric | 1 | Generic signature timestamp |
cttESC | 2 | ES-C timestamp (X and XL type 1) |
cttCertsAndCRLs | 3 | CertsAndCRLs timestamp (X and XL type 2) |
cttArchive | 4 | Archival timestamp v1 |
cttArchive2 | 5 | Archival timestamp v2 |
cttArchive3 | 6 | Archival timestamp v3 |
cttContent | 7 | Content timestamp |