New to Telerik Document ProcessingStart a free 30-day trial

Helper for incrementally building a SignatureValidationResult during validation.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.DigitalSignatures

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class SignatureValidationResultBuilder

Inheritance: objectSignatureValidationResultBuilder

Constructors

Create a new result builder.

C#
public SignatureValidationResultBuilder()

Methods

Set the certificates used to create the digital signature.

C#
public void BuildCertificates(X509Certificate2Collection certificates)
Parameters:certificatesX509Certificate2Collection

The collection of X.509 certificates used for signing.

Set the chain elements that describe issues encountered during certificate validation.

C#
public void BuildCertificatesChainElements(X509ChainElementCollection certificatesChainElements)
Parameters:certificatesChainElementsX509ChainElementCollection

The collection of X.509 certificate chain elements.

Set the name of the signature form field associated with the result.

C#
public void BuildFieldName(string fieldName)
Parameters:fieldNamestring

The name of the signature form field.

Set the hash algorithm OID used to compute the message digest.

C#
public void BuildHashAlgorithm(Oid hashAlgorithm)
Parameters:hashAlgorithmOid

The hash algorithm OID.

Set whether the certificate used for signing is valid.

C#
public void BuildIsCertificateValid(bool isCertificateValid)
Parameters:isCertificateValidbool

If set to true, indicates the certificate is valid.

Set whether the document was modified after it was signed.

C#
public void BuildIsDocumentModified(bool isDocumentModified)
Parameters:isDocumentModifiedbool

If set to true, indicates the document was modified after signing.

Set the signer information (e.g., name or entity) extracted from the signature.

C#
public void BuildSignerInformation(string signerInformation)
Parameters:signerInformationstring

The name or identifier of the signer.

Get the constructed signature validation result.

C#
public SignatureValidationResult GetResult()
Returns:

SignatureValidationResult

An instance of the SignatureValidationResult class.