Additional certificates to include (e.g., CA certificates).
Content type identifier for the data being signed.
Certificate Revocation Lists to include.
Optional
dataThe data to be signed (optional for detached signatures).
Alias for setDetached for more fluent API.
Configures whether to create a detached signature.
true for detached, false for attached (default: true)
This builder instance for chaining
Whether to create a detached signature (data not included).
Array of signers to include in the SignedData.
Builds and returns the constructed object asynchronously.
Promise resolving to the constructed object of type T
Sets the content type for the data being signed.
Content type identifier or string
This builder instance for chaining
Sets the data to be signed and optionally the content type.
The data as bytes or string
Optional
contentType: ObjectIdentifierOptional content type identifier
This builder instance for chaining
Configures whether to create a detached signature.
true for detached, false for attached (default: true)
This builder instance for chaining
Builder class for creating CMS/PKCS#7 SignedData structures.
This builder provides a fluent API for constructing digitally signed data structures. It supports multiple signers, attached/detached signatures, certificate chains, CRLs, and timestamping. The builder handles the complexity of assembling all required components and calculating signatures.
Example