Optional
certificatesOptional set of certificates for signature verification.
Optional
crlsOptional set of certificate revocation information.
Set of digest algorithms used by signers.
Information about the encapsulated content being signed.
Version of the CMS structure.
Static
CertificateReference to CertificateSet class.
Static
DigestReference to DigestAlgorithmIdentifier class.
Static
DigestReference to DigestAlgorithmIdentifiers class.
Static
RevocationReference to RevocationInfoChoices class.
Static
SignerReference to SignerInfos class.
Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.
Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.
Adds a CRL to the SignedData's CRLs.
The CertificateList (CRL) to add
Adds an OCSPResponse to the SignedData's CRLs.
The OCSPResponse to add
Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.
The other PKI object to compare with
true if the objects are equal, false otherwise
Parses this object as a different PKI type. Useful for converting between related PKI structures.
The target type to parse as
The target type constructor with parsing capabilities
A new instance of the target type
Converts the SignedData to an ASN.1 structure.
Converts this PKI object to DER (Distinguished Encoding Rules) format.
The DER-encoded bytes of this object
Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.
A human-readable string representation
Converts this PKI object to PEM (Privacy-Enhanced Mail) format.
A PEM-encoded string with appropriate headers
Returns a string representation of this PKI object. Includes the type name and ASN.1 structure.
A string representation for debugging
Verifies the signatures in the SignedData object.
Verification options
Optional
certificateValidation?: true | CertificateValidationOptionsCertificate validation options or true for default validation
Optional
data?: Uint8Array<ArrayBufferLike>Optional original data for detached signatures
Static
builderCreates a builder for constructing a SignedData object.
A new SignedDataBuilder instance
Static
fromCreates a SignedData from an ASN.1 structure.
The ASN.1 structure
The SignedData object
Static
fromCreates a SignedData from a ContentInfo structure or DER bytes.
The ContentInfo or DER bytes
The SignedData object
Static
fromCreates a SignedData from a DER-encoded byte array.
The DER-encoded SignedData
The SignedData object
Represents a CMS/PKCS#7 SignedData structure.
SignedData is used to digitally sign content. It can contain the signed content (attached signature) or just the signature information (detached signature). Multiple signers can sign the same content, and certificates and CRLs can be included for signature verification.
Asn
Example