Class SignatureValidationResultBuilder
Defines a class used to construct an instance of the SignatureValidationResult class.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.DigitalSignatures
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class SignatureValidationResultBuilder
Constructors
SignatureValidationResultBuilder()
Initializes a new instance of the SignatureValidationResultBuilder class.
Declaration
public SignatureValidationResultBuilder()
Methods
BuildCertificates(X509Certificate2Collection)
Sets the collection of certificates used to create the digital signature.
Declaration
public void BuildCertificates(X509Certificate2Collection certificates)
Parameters
System.Security.Cryptography.X509Certificates.X509Certificate2Collection
certificates
The collection of X.509 certificates used for signing. |
BuildCertificatesChainElements(X509ChainElementCollection)
Sets the collection of certificate chain elements that describe any errors encountered during certificate validation.
Declaration
public void BuildCertificatesChainElements(X509ChainElementCollection certificatesChainElements)
Parameters
System.Security.Cryptography.X509Certificates.X509ChainElementCollection
certificatesChainElements
The collection of X.509 certificate chain elements. |
BuildFieldName(String)
Sets the name of the signature form field associated with the validation result.
Declaration
public void BuildFieldName(string fieldName)
Parameters
System.String
fieldName
The name of the signature form field. |
BuildHashAlgorithm(Oid)
Sets the hash algorithm object identifier (OID) used for calculating the message digest during signature creation.
Declaration
public void BuildHashAlgorithm(Oid hashAlgorithm)
Parameters
System.Security.Cryptography.Oid
hashAlgorithm
The hash algorithm OID. |
BuildIsCertificateValid(Boolean)
Sets whether the certificate used for signing is valid.
Declaration
public void BuildIsCertificateValid(bool isCertificateValid)
Parameters
System.Boolean
isCertificateValid
If set to |
BuildIsDocumentModified(Boolean)
Sets whether the document was modified after it was signed.
Declaration
public void BuildIsDocumentModified(bool isDocumentModified)
Parameters
System.Boolean
isDocumentModified
If set to |
BuildSignerInformation(String)
Sets the signer information, which is the name of the person or authority who signed the document.
Declaration
public void BuildSignerInformation(string signerInformation)
Parameters
System.String
signerInformation
The name or identifier of the signer. |
GetResult()
Gets the signature validation result.
Declaration
public SignatureValidationResult GetResult()
Returns
SignatureValidationResult
An instance of the SignatureValidationResult class. |