pdf-lite - v1.0.1
    Preparing search index...

    PKCS#7 SHA-1 signature object (adbe.pkcs7.sha1). Creates CMS SignedData with SHA-1 hash embedded as signed content.

    const signature = new PdfAdbePkcs7Sha1SignatureObject({
    privateKey: keyBytes,
    certificate: certBytes
    })

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    additionalCertificates: ByteArray[]

    Additional certificates for chain building.

    certificate: ByteArray

    Signer certificate.

    date?: Date

    Signing date.

    encryptable?: boolean
    generationNumber: number
    issuerCertificate?: ByteArray

    Issuer certificate for OCSP requests.

    modified: boolean = true

    Indicates whether the object has been modified. By default, assume it has been modified because it's a new object

    objectNumber: number
    offset: Ref<number>
    orderIndex?: number
    postTokens?: PdfToken[]

    Optional tokens to prepend or append during serialization

    preTokens?: PdfToken[]

    Optional tokens to prepend or append during serialization

    privateKey: ByteArray

    Private key for signing.

    revocationInfo?: RevocationInfo | "fetch"

    Revocation information or 'fetch' to retrieve automatically.

    sign: (
        options: { bytes: ByteArray; embedRevocationInfo?: boolean },
    ) => Promise<{ revocationInfo?: RevocationInfo; signedBytes: ByteArray }> = ...

    Signs the document bytes using PKCS#7 SHA-1 format.

    Type Declaration

      • (
            options: { bytes: ByteArray; embedRevocationInfo?: boolean },
        ): Promise<{ revocationInfo?: RevocationInfo; signedBytes: ByteArray }>
      • Signs the document bytes and returns the signature.

        Parameters

        • options: { bytes: ByteArray; embedRevocationInfo?: boolean }

          Signing options including bytes to sign.

        Returns Promise<{ revocationInfo?: RevocationInfo; signedBytes: ByteArray }>

        The signed bytes and optional revocation information.

    Signing options with bytes and revocation embedding flag.

    The CMS SignedData and revocation information.

    timeStampAuthority?: TimeStampAuthority

    Timestamp authority configuration.

    ALGORITHM: AsymmetricEncryptionAlgorithmParams = ...

    Fixed algorithm for SHA-1 signatures.

    MAX_ORDER_INDEX: 2147483647

    Accessors

    Methods