[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.ISignatureParser

Interface ISignatureParser

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Defines properties and methods that allow parsing and validating an existing PDF binary signature that is stored in the /Contents property of the PDF signature dictionary.

public interface ISignatureParser : IDisposable
Inherited Members

Properties

EncryptionAlgorithm

Gets the name of the encryption algorithm used in the signature.

string EncryptionAlgorithm { get; }

Property Value

string

HashAlgorithm

Gets the name of the HASH algorithm used in the signature.

string HashAlgorithm { get; }

Property Value

string

IsTcp

Gets a value indicating whether the signature is a PAdES LTV time-stamp.

bool IsTcp { get; }

Property Value

bool

SigningCertificate

Gets the X509Certificate2 object that represents the certificate used to create the signature.

X509Certificate2 SigningCertificate { get; }

Property Value

X509Certificate2

SigningCertificateChain

Gets the chain of certificates used to create the signature. The first certificate in the list is the signing certificate.

IList<X509Certificate2> SigningCertificateChain { get; }

Property Value

IList<X509Certificate2>

SigningTime

Gets the signing time that is stored in the signature, or null if the binary signature does not contain a signing time.

DateTime? SigningTime { get; }

Property Value

DateTime?
See Also

Methods

GetSignatureData()

Returns the signature data.

byte[] GetSignatureData()

Returns

byte[]

The signature data.

VerifySignatureValue()

Verifies the signature by checking that embedded data digest corresponds to the calculated one.

bool VerifySignatureValue()

Returns

bool

true if the signature is correct and corresponds to the signed data, false otherwise.