[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.Signature

Class Signature

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

Represents a digital signature in a PDF.

public class Signature : PdfDictWrapper, IPdfDict
Inheritance
object
Signature
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Properties

ContactInfo

Gets the information provided by the signer to enable a recipient to contact the signer to verify the signature (for example, a phone number).

public string ContactInfo { get; }

Property Value

string

Contents

Gets the signature value.

public byte[] Contents { get; }

Property Value

byte[]

Doc

Gets the GcPdfDocument owning this object.

public GcPdfDocument Doc { get; }

Property Value

GcPdfDocument

Filter

Gets the name of the preferred signature handler to use when validating this signature.

public string Filter { get; }

Property Value

string

Location

Gets the CPU host name or physical location of the signing.

public string Location { get; }

Property Value

string

Name

Gets the name of the person or authority signing the document. This value should be used only when it is not possible to extract the name from the signature; for example, from the certificate of the signer.

public string Name { get; }

Property Value

string

Reason

Gets the reason for the signing, such as "I agree...".

public string Reason { get; }

Property Value

string

SigningTime

Gets the time of signing. Depending on the signature handler, this may be a normal unverified computer time or a time generated in a verifiable way from a secure time server. This value should be used only when the time of signing is not available in the signature; for example, a time stamp can be embedded in a PKCS#7 binary data object (see PDF specification for more details).

public PdfDateTime? SigningTime { get; }

Property Value

PdfDateTime?

SubFilter

Gets a name that describes the encoding of the signature value and key information in the signature dictionary.

public string SubFilter { get; }

Property Value

string

Type

Gets the signature type, if present, shall be "Sig" for a signature dictionary or "DocTimeStamp" for a time-stamp signature dictionary.

public string Type { get; }

Property Value

string

Methods

CreateParser()

Creates an ISignatureParser object that can be used to parse a binary signature.

public ISignatureParser CreateParser()

Returns

ISignatureParser

The ISignatureParser object.

VerifySignature()

Verifies the signature.

[Obsolete("Use VerifySignatureValue() instead")]
public bool VerifySignature()

Returns

bool

True if the signature was verified successfully, false otherwise.

VerifySignatureValue()

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

public bool VerifySignatureValue()

Returns

bool

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