UNPKG

@wildboar/pki-stub

Version:
126 lines (125 loc) 3.97 kB
import { OPTIONAL, ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { TBSCertAVL_entries_Item_idType } from "../PKI-Stub/TBSCertAVL-entries-Item-idType.ta"; import { Extensions } from "../PKI-Stub/Extensions.ta"; import { ScopeRestrictions } from "../AuthenticationFramework/ScopeRestrictions.ta"; /** * @summary TBSCertAVL_entries_Item * @description * * ### ASN.1 Definition: * * ```asn1 * TBSCertAVL-entries-Item ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- } * ``` * * @class */ export declare class TBSCertAVL_entries_Item { /** * @summary `idType`. * @public * @readonly */ readonly idType: TBSCertAVL_entries_Item_idType; /** * @summary `scope`. * @public * @readonly */ readonly scope?: OPTIONAL<ScopeRestrictions>; /** * @summary `entryExtensions`. * @public * @readonly */ readonly entryExtensions?: OPTIONAL<Extensions>; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `idType`. * @public * @readonly */ idType: TBSCertAVL_entries_Item_idType, /** * @summary `scope`. * @public * @readonly */ scope?: OPTIONAL<ScopeRestrictions>, /** * @summary `entryExtensions`. * @public * @readonly */ entryExtensions?: OPTIONAL<Extensions>, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a TBSCertAVL_entries_Item * @description * * This takes an `object` and converts it to a `TBSCertAVL_entries_Item`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `TBSCertAVL_entries_Item`. * @returns {TBSCertAVL_entries_Item} */ static _from_object(_o: { [_K in keyof TBSCertAVL_entries_Item]: TBSCertAVL_entries_Item[_K]; }): TBSCertAVL_entries_Item; } /** * @summary The Leading Root Component Types of TBSCertAVL_entries_Item * @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_TBSCertAVL_entries_Item: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of TBSCertAVL_entries_Item * @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_TBSCertAVL_entries_Item: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of TBSCertAVL_entries_Item * @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_TBSCertAVL_entries_Item: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) TBSCertAVL_entries_Item * @function * @param {_Element} el The element being decoded. * @returns {TBSCertAVL_entries_Item} The decoded data structure. */ export declare function _decode_TBSCertAVL_entries_Item(el: _Element): TBSCertAVL_entries_Item; /** * @summary Encodes a(n) TBSCertAVL_entries_Item into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The TBSCertAVL_entries_Item, encoded as an ASN.1 Element. */ export declare function _encode_TBSCertAVL_entries_Item(value: TBSCertAVL_entries_Item, elGetter: $.ASN1Encoder<TBSCertAVL_entries_Item>): _Element;