Class DocumentSignatureInfo
- Namespace
- DocToolkit
- Assembly
- DocToolkit.Primitives.dll
The result of a structural signature inspection — whether a document carries a signature and who claims to have signed it, without validating anything cryptographically.
public sealed class DocumentSignatureInfo
- Inheritance
-
DocumentSignatureInfo
- Inherited Members
Remarks
Signers is unvalidated. It is read directly from each signing certificate's
subject name, the same way the certificate itself claims an identity — this method does not
check whether the signature is genuine, whether the certificate chains to anything trusted, or
whether the signed content has been tampered with since signing. Use
ValidateSignatures before treating a claimed identity as real.
Constructors
DocumentSignatureInfo(bool, int, IEnumerable<string>)
Creates the result of a structural signature inspection.
public DocumentSignatureInfo(bool hasSignatures, int signatureCount, IEnumerable<string> signers)
Parameters
hasSignaturesboolWhether the document carries at least one signature.
signatureCountintHow many signatures the document carries.
signersIEnumerable<string>The claimed signer subject names, one entry per signing certificate found.
Exceptions
- ArgumentNullException
signersis null.
Properties
HasSignatures
Whether the document carries at least one signature.
public bool HasSignatures { get; }
Property Value
SignatureCount
How many signatures the document carries.
public int SignatureCount { get; }
Property Value
Signers
The claimed signer subject names — see the remarks on this type before trusting one.
public IReadOnlyList<string> Signers { get; }