UNPKG

@syncfusion/ej2-pdf

Version:

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

114 lines (113 loc) 2.86 kB
import { _PdfAbstractSyntaxElement } from '../asn1/abstract-syntax'; import { _PdfAlgorithms } from './x509-algorithm'; import { _PdfUniqueBitString } from './x509-bit-string-handler'; import { _PdfPublicKeyInformation } from './x509-certificate-key'; import { _PdfX509Extensions } from './x509-extensions'; import { _PdfX509Name } from './x509-name'; import { _PdfX509Time } from './x509-time'; /** * Parsed representation of an X.509 signed certificate (tbsCertificate + signature metadata). * * @private */ export declare class _PdfSignedCertificate { /** * Raw ASN.1 sequence elements composing the certificate. * * @private * @type {_PdfAbstractSyntaxElement[]} */ _sequence: _PdfAbstractSyntaxElement[]; /** * Numeric certificate version (0-based internally, exposed via _getVersion). * * @private * @type {number} */ _version: number; /** * Certificate serial number as raw bytes. * * @private * @type {Uint8Array} */ _serialNumber: Uint8Array; /** * Signature algorithm identifier for this certificate. * * @private * @type {_PdfAlgorithms} */ _signature: _PdfAlgorithms; /** * Issuer distinguished name. * * @private * @type {_PdfX509Name} */ _issuer: _PdfX509Name; /** * Validity start time. * * @private * @type {_PdfX509Time} */ _startDate: _PdfX509Time; /** * Validity end time. * * @private * @type {_PdfX509Time} */ _endDate: _PdfX509Time; /** * Subject distinguished name. * * @private * @type {_PdfX509Name} */ _subject: _PdfX509Name; /** * Subject public key information. * * @private * @type {_PdfPublicKeyInformation} */ _publicKeyInformation: _PdfPublicKeyInformation; /** * Optional issuer unique ID bit string. * * @private * @type {_PdfUniqueBitString|undefined} */ _issuerID?: _PdfUniqueBitString; /** * Optional subject unique ID bit string. * * @private * @type {_PdfUniqueBitString|undefined} */ _subjectID?: _PdfUniqueBitString; /** * Optional certificate extensions container. * * @private * @type {_PdfX509Extensions|undefined} */ _extensions?: _PdfX509Extensions; constructor(sequenceElement: _PdfAbstractSyntaxElement); /** * Get the human-readable certificate version (1,2,3...). * * @private * @returns {number} The certificate version number. */ _getVersion(): number; /** * Return the DER-encoded bytes that represent this entire certificate. * * @private * @returns {Uint8Array} DER-encoded certificate bytes. */ _getDistinguishEncoded(): Uint8Array; }