Class CadesSignatureValidator
- Namespace
- SimpleSign.CAdES
- Assembly
- SimpleSign.CAdES.dll
Validates standalone CAdES digital signatures (ETSI EN 319 122). Given a detached CMS/PKCS#7 SignedData and the original document, verifies content integrity, cryptographic signature, certificate chain, timestamp (if present), and LTV data (if present).
public sealed class CadesSignatureValidator : ICadesSignatureValidator
- Inheritance
-
CadesSignatureValidator
- Implements
- Inherited Members
Constructors
CadesSignatureValidator(ValidationOptions?, ILogger?, ICryptoVerifier?, ICmsParser?, ITimestampValidator?)
Creates a validator with the specified options.
public CadesSignatureValidator(ValidationOptions? options = null, ILogger? logger = null, ICryptoVerifier? cryptoVerifier = null, ICmsParser? cmsParser = null, ITimestampValidator? timestampValidator = null)
Parameters
optionsValidationOptionsloggerILoggercryptoVerifierICryptoVerifiercmsParserICmsParsertimestampValidatorITimestampValidator
Methods
Validate(byte[], byte[], IEnumerable<X509Certificate2>?)
Validates a CAdES detached signature.
public CadesValidationResult Validate(byte[] cmsBytes, byte[] originalData, IEnumerable<X509Certificate2>? trustAnchors = null)
Parameters
cmsBytesbyte[]DER-encoded CMS/PKCS#7 SignedData.
originalDatabyte[]The original document bytes that were signed.
trustAnchorsIEnumerable<X509Certificate2>Optional trust anchors for certificate chain validation.
Returns
- CadesValidationResult
A detailed validation result.