UNPKG

@syncfusion/ej2-pdf

Version:

Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.

63 lines (62 loc) 1.92 kB
import { _PdfAbstractSyntaxElement } from '../asn1/abstract-syntax'; import { _PdfAlgorithms } from './x509-algorithm'; import { _PdfUniqueBitString } from './x509-bit-string-handler'; import { _PdfSignedCertificate } from './x509-signed-certificate'; /** * Representation of the top-level X.509 certificate structure (tbsCertificate + signature). * * @private */ export declare class _PdfX509CertificateStructure { /** * The parsed ToBeSigned certificate component. * * @private * @type {_PdfSignedCertificate} */ _toBeSignedCertificate: _PdfSignedCertificate; /** * Algorithm identifier used for the certificate signature. * * @private * @type {_PdfAlgorithms} */ _signatureAlgorithmIdentifier: _PdfAlgorithms; /** * Raw signature BIT STRING for the certificate. * * @private * @type {_PdfUniqueBitString} */ _signature: _PdfUniqueBitString; /** * Underlying ASN.1 sequence elements representing the certificate. * * @private * @type {_PdfAbstractSyntaxElement[]} */ _sequence: _PdfAbstractSyntaxElement[]; constructor(seq?: _PdfAbstractSyntaxElement[]); /** * Return the parsed `ToBeSigned` certificate wrapper. * * @private * @returns {_PdfSignedCertificate} The signed certificate component. */ _getSignedCertificate(): _PdfSignedCertificate; /** * Construct an instance from an ASN.1 sequence array if valid. * * @private * @param {any} obj - Candidate sequence array. * @returns {_PdfX509CertificateStructure} New structure instance or null. */ _getInstance(obj: any): _PdfX509CertificateStructure; /** * Produce DER encoded bytes for the entire certificate structure. * * @private * @returns {Uint8Array} DER-encoded certificate bytes. */ _getDerEncoded(): Uint8Array; }