GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfTimestamper Class

    Namespace:
    GemBox.Pdf.Security
    Assembly:
    GemBox.Pdf.dll

    Represents a timestamper that gets the TimeStampToken as specified in RFC 3161 as updated by RFC 5816.

    The value of the messageImprint field within the TimeStampToken shall be a hash of either:

    • the bytes of the signature field within SignerInfo for the CMS-based Content if the generated timestamp token is included as a unsigned attribute of that SignerInfo (signature timestamp).
    • the bytes of the document indicated by the ByteRange and the ByteRange shall specify the complete PDF file contents (excepting the Content value) if the generated timestamp token is included as a content of a signature dictionary (whose Type entry has a value of DocTimeStamp) that is a value of a signature field added as an incremental update (document timestamp).
    • C#
    • VB.NET
    public class PdfTimestamper
    Public Class PdfTimestamper
    Inheritance:
    System.Object
    PdfTimestamper

    Constructors

    PdfTimestamper(String)

    Initializes a new instance of the PdfTimestamper class with the specified address of a Timestamp Authority (TSA) that generates the timestamp token.

    • C#
    • VB.NET
    public PdfTimestamper(string address)
    Public Sub New(address As String)
    Parameters
    address
    System.String

    The address of a Timestamp Authority (TSA) that generates the timestamp token.

    Exceptions
    System.ArgumentNullException

    address is null.

    Properties

    Address

    Gets the address of a Timestamp Authority (TSA) that generates the timestamp token.

    • C#
    • VB.NET
    public string Address { get; }
    Public ReadOnly Property Address As String
    Property Value
    System.String

    The address of a Timestamp Authority (TSA) that generates the timestamp token.

    ApplicationName

    (Optional; PDF 1.5) The name of the software module used to create the timestamp. When used as an entry in the data dictionary of the Filter attribute (Table 2.1), the value is the name of the signature handler. The value is normally equal to the value of the Filter attribute in the signature dictionary.

    Default value: Title.

    • C#
    • VB.NET
    public string ApplicationName { get; set; }
    Public Property ApplicationName As String
    Property Value
    System.String

    The name of the software module used to create the timestamp.

    See Also
    The Digital Signature Build Properties Dictionary Specification

    ApplicationVersion

    (Optional; PDF 1.6) A text string indicating the version of the application implementation, as described by the Name attribute in this dictionary. When set by Adobe Acrobat, this entry is in the format: major.minor.micro (for example 7.0.7).

    Default value: Version.

    • C#
    • VB.NET
    public string ApplicationVersion { get; set; }
    Public Property ApplicationVersion As String
    Property Value
    System.String

    A text string indicating the version of the application implementation, as described by the Name attribute in this dictionary.

    See Also
    The Digital Signature Build Properties Dictionary Specification

    ClientId

    Gets or sets the client digital ID used in a Transport Layer Security protocol if Timestamp Authority (TSA) requires it to identify the TimeStampToken request client.

    Default value: null.

    • C#
    • VB.NET
    public PdfDigitalId ClientId { get; set; }
    Public Property ClientId As PdfDigitalId
    Property Value
    PdfDigitalId

    The client digital ID used in a Transport Layer Security protocol if Timestamp Authority (TSA) requires it to identify the TimeStampToken request client.

    HashAlgorithm

    Gets or sets the hash algorithm that hashes either:

    • the bytes of the signature field within SignerInfo for the CMS-based Content if the generated timestamp token is included as an unsigned attribute of that SignerInfo (signature timestamp).
    • the bytes of the document indicated by the ByteRange and the ByteRange shall specify the complete PDF file contents (excepting the Content value) if the generated timestamp token is included as a content of a signature dictionary (whose Type entry has a value of DocTimeStamp) that is a value of a signature field added as an incremental update (document timestamp).

    Default value: SHA512.

    • C#
    • VB.NET
    public PdfHashAlgorithm HashAlgorithm { get; set; }
    Public Property HashAlgorithm As PdfHashAlgorithm
    Property Value
    PdfHashAlgorithm

    The hash algorithm.

    Password

    Gets or sets the password used in an HTTP Authorization header if Timestamp Authority (TSA) requires authentication information for the TimeStampToken request.

    Default value: null.

    • C#
    • VB.NET
    public string Password { get; set; }
    Public Property Password As String
    Property Value
    System.String

    The password used in an HTTP Authorization header if Timestamp Authority (TSA) requires authentication information for the TimeStampToken request.

    Proxy

    Gets or sets the proxy used by the PdfTimestamper.

    Default value: null

    • C#
    • VB.NET
    public IWebProxy Proxy { get; set; }
    Public Property Proxy As IWebProxy
    Property Value
    System.Net.IWebProxy

    The proxy used by the PdfTimestamper.

    Username

    Gets or sets the user name used in an HTTP Authorization header if Timestamp Authority (TSA) requires authentication information for the TimeStampToken request.

    Default value: null.

    • C#
    • VB.NET
    public string Username { get; set; }
    Public Property Username As String
    Property Value
    System.String

    The user name used in an HTTP Authorization header if Timestamp Authority (TSA) requires authentication information for the TimeStampToken request.

    Examples

    PAdES B-LTA level example
    PAdES B-T level example

    See Also

    PDF Specification ISO 32000-1:2008, section '12.8.3.3 PKCS#7 Signatures as used in ISO 32000'
    ETSI EN 319 142-1, section '5.4.3 Document Time-stamp'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.