UNPKG

@syncfusion/ej2-pdf

Version:

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

69 lines (68 loc) 2.14 kB
import { _PdfAbstractSyntaxElement } from '../asn1/abstract-syntax'; import { _PdfUniqueEncodingElement } from '../asn1/unique-encoding-element'; import { _PdfObjectIdentifier } from '../asn1/identifier-mapping'; /** * Represents algorithm identifier components parsed from ASN.1 AlgorithmIdentifier. * * @private */ export declare class _PdfAlgorithms { /** * The ASN.1 element that identifies the algorithm. * * @private * @type {_PdfAbstractSyntaxElement} */ _element: _PdfAbstractSyntaxElement; /** * The parsed object identifier for the algorithm. * * @private * @type {_PdfObjectIdentifier} */ _objectID: _PdfObjectIdentifier; /** * Optional ASN.1 parameters element for the algorithm. * * @private * @type {_PdfAbstractSyntaxElement|undefined} */ _parameters?: _PdfAbstractSyntaxElement; /** * True when the algorithm parameters are present on the element. * * @private * @type {boolean} */ _parametersDefined: boolean; constructor(element?: _PdfAbstractSyntaxElement); /** * Normalize or construct a `_PdfAlgorithms` instance from an input value. * * @private * @param {any} obj - Candidate object or ASN.1 element to convert. * @returns {_PdfAlgorithms} The resolved algorithms instance or undefined. */ _getAlgorithms(obj: any): _PdfAlgorithms; /** * Return the DER/unique encoding bytes for the underlying element. * * @private * @returns {Uint8Array} The encoded bytes for the algorithm identifier. */ _uniqueEncoderEncode(): Uint8Array; /** * Create an ASN.1 NULL unique encoder element. * * @private * @returns {_PdfAbstractSyntaxElement} A DER NULL element. */ _getUniqueEncoderNull(): _PdfAbstractSyntaxElement; /** * Build an abstract syntax element representing the AlgorithmIdentifier sequence. * * @private * @returns {_PdfUniqueEncodingElement} The constructed ASN.1 sequence element. */ _getAbstractSyntax(): _PdfUniqueEncodingElement; }