import { ASN1Element as _Element, BIT_STRING, INTEGER, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { Name } from "../InformationFramework/Name.ta.mjs"; import { Random_Integer } from "../SpkmGssTokens/Random-Integer.ta.mjs"; /** * @summary REP_IT_TOKEN * @description * * ### ASN.1 Definition: * * ```asn1 * REP-IT-TOKEN ::= SEQUENCE { * tok-id INTEGER(768), -- shall contain 0300 (hex) * context-id Random-Integer, * randSrc Random-Integer, * randTarg Random-Integer, * targ-name Name, * src-name Name OPTIONAL, * key-estb-rep BIT STRING OPTIONAL * } * ``` * */ export declare class REP_IT_TOKEN { /** * @summary `tok_id`. * @public * @readonly */ readonly tok_id: INTEGER; /** * @summary `context_id`. * @public * @readonly */ readonly context_id: Random_Integer; /** * @summary `randSrc`. * @public * @readonly */ readonly randSrc: Random_Integer; /** * @summary `randTarg`. * @public * @readonly */ readonly randTarg: Random_Integer; /** * @summary `targ_name`. * @public * @readonly */ readonly targ_name: Name; /** * @summary `src_name`. * @public * @readonly */ readonly src_name?: OPTIONAL; /** * @summary `key_estb_rep`. * @public * @readonly */ readonly key_estb_rep?: OPTIONAL; constructor( /** * @summary `tok_id`. * @public * @readonly */ tok_id: INTEGER, /** * @summary `context_id`. * @public * @readonly */ context_id: Random_Integer, /** * @summary `randSrc`. * @public * @readonly */ randSrc: Random_Integer, /** * @summary `randTarg`. * @public * @readonly */ randTarg: Random_Integer, /** * @summary `targ_name`. * @public * @readonly */ targ_name: Name, /** * @summary `src_name`. * @public * @readonly */ src_name?: OPTIONAL, /** * @summary `key_estb_rep`. * @public * @readonly */ key_estb_rep?: OPTIONAL); /** * @summary Restructures an object into a REP_IT_TOKEN * @description * * This takes an `object` and converts it to a `REP_IT_TOKEN`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `REP_IT_TOKEN`. * @returns {REP_IT_TOKEN} */ static _from_object(_o: { [_K in keyof REP_IT_TOKEN]: REP_IT_TOKEN[_K]; }): REP_IT_TOKEN; } /** * @summary The Leading Root Component Types of REP_IT_TOKEN * @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_REP_IT_TOKEN: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of REP_IT_TOKEN * @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_REP_IT_TOKEN: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of REP_IT_TOKEN * @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_REP_IT_TOKEN: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) REP_IT_TOKEN * @function * @param {_Element} el The element being decoded. * @returns {REP_IT_TOKEN} The decoded data structure. */ export declare function _decode_REP_IT_TOKEN(el: _Element): REP_IT_TOKEN; /** * @summary Encodes a(n) REP_IT_TOKEN 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 REP_IT_TOKEN, encoded as an ASN.1 Element. */ export declare function _encode_REP_IT_TOKEN(value: REP_IT_TOKEN, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=REP-IT-TOKEN.ta.d.mts.map