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

    X.509 RSA-SHA1 signature object (adbe.x509.rsa_sha1). Creates a raw RSA-SHA1 signature with certificates in the Cert entry.

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    additionalCertificates?: ByteArray[]

    Additional certificates for chain building.

    certificate: ByteArray

    Signer certificate.

    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 RSA-SHA1 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.

    The signature bytes and revocation information.

    ALGORITHM: AsymmetricEncryptionAlgorithmParams = ...

    Fixed algorithm for RSA-SHA1 signatures.

    MAX_ORDER_INDEX: 2147483647

    Accessors

    Methods