Signature
Digital signature API for signing and validating PDF content, enabling integrity checks and signer attribution.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.DigitalSignatures
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class Signature
Inheritance: objectSignature
Constructors
Create a signature instance configured for external signing.
public Signature(IExternalSigner signDataHandler)
The external signing handler that performs the actual signing operation.
Create a signature instance bound to an X.509 certificate used for signing.
public Signature(X509Certificate2 certificate)
The X.509 certificate containing the private key used for digital signing.
Methods
Validate the signature using default settings and return whether validation succeeded.
public bool TryValidate(out SignatureValidationResult validationResult)
When this method returns, contains the signature validation result.
Returns:Return true on success; otherwise false.
Validate the signature using the provided properties and return whether validation succeeded.
public bool TryValidate(SignatureValidationProperties validationProperties, out SignatureValidationResult validationResult)
The validation properties.
validationResultSignatureValidationResultWhen this method returns, contains the signature validation result.
Returns:Return true on success; otherwise false.
Validate the signature using default validation properties and return the result.
public SignatureValidationResult Validate()
An instance of the SignatureValidationResult class.
Validate the signature using the specified properties and return the validation result.
public SignatureValidationResult Validate(SignatureValidationProperties validationProperties)
The validation properties.
Returns:The validation result indicating whether the signature is valid.
Properties
Metadata and configuration for the signature (signer info, time, location, contents, and byte ranges).
public SignatureDataProperties Properties { get; set; }
The signature data properties that define the signature's characteristics and metadata.
Signing configuration applied when producing (or guiding external production of) the CMS / PKCS#7 signature.
public SignatureSettings Settings { get; }
Values contained here (e.g. selected digest algorithm) are not written directly as PDF dictionary keys;
they influence how the CMS envelope is built for new signatures. Changing settings after the signature
bytes (/Contents) have been generated has no effect on that existing signature.
Indicates whether this instance supports validation (imported signatures only).
public bool SupportsValidation { get; }
true if the signature was imported from an existing document and can be validated; false for newly created signatures.