UNPKG

@wildboar/pki-stub

Version:
129 lines 3.76 kB
import { OPTIONAL, ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { GeneralNames } from "../PKI-Stub/GeneralNames.ta.mjs"; import { CertificateSerialNumber } from "../PKI-Stub/CertificateSerialNumber.ta.mjs"; import { UniqueIdentifier } from "../PKI-Stub/UniqueIdentifier.ta.mjs"; /** * @summary IssuerSerial * @description * * ### ASN.1 Definition: * * ```asn1 * IssuerSerial ::= SEQUENCE { * issuer GeneralNames, * serial CertificateSerialNumber, * issuerUID UniqueIdentifier OPTIONAL, * ... } * ``` * */ export declare class IssuerSerial { /** * @summary `issuer`. * @public * @readonly */ readonly issuer: GeneralNames; /** * @summary `serial`. * @public * @readonly */ readonly serial: CertificateSerialNumber; /** * @summary `issuerUID`. * @public * @readonly */ readonly issuerUID?: OPTIONAL<UniqueIdentifier>; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `issuer`. * @public * @readonly */ issuer: GeneralNames, /** * @summary `serial`. * @public * @readonly */ serial: CertificateSerialNumber, /** * @summary `issuerUID`. * @public * @readonly */ issuerUID?: OPTIONAL<UniqueIdentifier>, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a IssuerSerial * @description * * This takes an `object` and converts it to a `IssuerSerial`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `IssuerSerial`. * @returns {IssuerSerial} */ static _from_object(_o: { [_K in keyof IssuerSerial]: IssuerSerial[_K]; }): IssuerSerial; } /** * @summary The Leading Root Component Types of IssuerSerial * @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_IssuerSerial: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of IssuerSerial * @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_IssuerSerial: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of IssuerSerial * @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_IssuerSerial: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) IssuerSerial * @function * @param {_Element} el The element being decoded. * @returns {IssuerSerial} The decoded data structure. */ export declare function _decode_IssuerSerial(el: _Element): IssuerSerial; /** * @summary Encodes a(n) IssuerSerial 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 IssuerSerial, encoded as an ASN.1 Element. */ export declare function _encode_IssuerSerial(value: IssuerSerial, _elGetter: $.ASN1Encoder<IssuerSerial>): _Element; //# sourceMappingURL=IssuerSerial.ta.d.mts.map