UNPKG

@wildboar/pkcs

Version:
117 lines 3.85 kB
import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { ExtendedCertificateInfo } from "../CryptographicMessageSyntax/ExtendedCertificateInfo.ta.mjs"; import { Signature } from "../CryptographicMessageSyntax/Signature.ta.mjs"; import { SignatureAlgorithmIdentifier } from "../CryptographicMessageSyntax/SignatureAlgorithmIdentifier.ta.mjs"; /** * @summary ExtendedCertificate * @description * * ### ASN.1 Definition: * * ```asn1 * ExtendedCertificate ::= SEQUENCE { * extendedCertificateInfo ExtendedCertificateInfo, * signatureAlgorithm SignatureAlgorithmIdentifier, * signature Signature * } * ``` * */ export declare class ExtendedCertificate { /** * @summary `extendedCertificateInfo`. * @public * @readonly */ readonly extendedCertificateInfo: ExtendedCertificateInfo; /** * @summary `signatureAlgorithm`. * @public * @readonly */ readonly signatureAlgorithm: SignatureAlgorithmIdentifier; /** * @summary `signature`. * @public * @readonly */ readonly signature: Signature; constructor( /** * @summary `extendedCertificateInfo`. * @public * @readonly */ extendedCertificateInfo: ExtendedCertificateInfo, /** * @summary `signatureAlgorithm`. * @public * @readonly */ signatureAlgorithm: SignatureAlgorithmIdentifier, /** * @summary `signature`. * @public * @readonly */ signature: Signature); /** * @summary Restructures an object into a ExtendedCertificate * @description * * This takes an `object` and converts it to a `ExtendedCertificate`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `ExtendedCertificate`. * @returns {ExtendedCertificate} */ static _from_object(_o: { [_K in keyof ExtendedCertificate]: ExtendedCertificate[_K]; }): ExtendedCertificate; } /** * @summary The Leading Root Component Types of ExtendedCertificate * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_ExtendedCertificate: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of ExtendedCertificate * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_ExtendedCertificate: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of ExtendedCertificate * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_ExtendedCertificate: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) ExtendedCertificate * @function * @param {_Element} el The element being decoded. * @returns {ExtendedCertificate} The decoded data structure. */ export declare function _decode_ExtendedCertificate(el: _Element): ExtendedCertificate; /** * @summary Encodes a(n) ExtendedCertificate into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The ExtendedCertificate, encoded as an ASN.1 Element. */ export declare function _encode_ExtendedCertificate(value: ExtendedCertificate, elGetter: $.ASN1Encoder<ExtendedCertificate>): _Element; //# sourceMappingURL=ExtendedCertificate.ta.d.mts.map