import { ASN1Element as _Element, BIT_STRING, INTEGER, OPTIONAL, UTCTime } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "../AuthenticationFramework/AlgorithmIdentifier.ta.mjs"; import { Validity } from "../AuthenticationFramework/Validity.ta.mjs"; import { Name } from "../InformationFramework/Name.ta.mjs"; import { Context_Data } from "../SpkmGssTokens/Context-Data.ta.mjs"; import { Random_Integer } from "../SpkmGssTokens/Random-Integer.ta.mjs"; /** * @summary Rep_ti_contents * @description * * ### ASN.1 Definition: * * ```asn1 * Rep-ti-contents ::= SEQUENCE { * tok-id INTEGER(512), -- shall contain 0200 (hex) * context-id Random-Integer, * pvno [0] BIT STRING OPTIONAL, * timestamp UTCTime OPTIONAL, -- mandatory for SPKM-2 * randTarg Random-Integer, * src-name [1] Name OPTIONAL, * targ-name Name, * randSrc Random-Integer, * rep-data Context-Data, * validity [2] Validity OPTIONAL, * key-estb-id AlgorithmIdentifier{{SupportedAlgorithms}} OPTIONAL, * key-estb-str BIT STRING OPTIONAL * } * ``` * */ export declare class Rep_ti_contents { /** * @summary `tok_id`. * @public * @readonly */ readonly tok_id: INTEGER; /** * @summary `context_id`. * @public * @readonly */ readonly context_id: Random_Integer; /** * @summary `pvno`. * @public * @readonly */ readonly pvno: OPTIONAL; /** * @summary `timestamp`. * @public * @readonly */ readonly timestamp: OPTIONAL; /** * @summary `randTarg`. * @public * @readonly */ readonly randTarg: Random_Integer; /** * @summary `src_name`. * @public * @readonly */ readonly src_name: OPTIONAL; /** * @summary `targ_name`. * @public * @readonly */ readonly targ_name: Name; /** * @summary `randSrc`. * @public * @readonly */ readonly randSrc: Random_Integer; /** * @summary `rep_data`. * @public * @readonly */ readonly rep_data: Context_Data; /** * @summary `validity`. * @public * @readonly */ readonly validity?: OPTIONAL; /** * @summary `key_estb_id`. * @public * @readonly */ readonly key_estb_id?: OPTIONAL; /** * @summary `key_estb_str`. * @public * @readonly */ readonly key_estb_str?: OPTIONAL; constructor( /** * @summary `tok_id`. * @public * @readonly */ tok_id: INTEGER, /** * @summary `context_id`. * @public * @readonly */ context_id: Random_Integer, /** * @summary `pvno`. * @public * @readonly */ pvno: OPTIONAL, /** * @summary `timestamp`. * @public * @readonly */ timestamp: OPTIONAL, /** * @summary `randTarg`. * @public * @readonly */ randTarg: Random_Integer, /** * @summary `src_name`. * @public * @readonly */ src_name: OPTIONAL, /** * @summary `targ_name`. * @public * @readonly */ targ_name: Name, /** * @summary `randSrc`. * @public * @readonly */ randSrc: Random_Integer, /** * @summary `rep_data`. * @public * @readonly */ rep_data: Context_Data, /** * @summary `validity`. * @public * @readonly */ validity?: OPTIONAL, /** * @summary `key_estb_id`. * @public * @readonly */ key_estb_id?: OPTIONAL, /** * @summary `key_estb_str`. * @public * @readonly */ key_estb_str?: OPTIONAL); /** * @summary Restructures an object into a Rep_ti_contents * @description * * This takes an `object` and converts it to a `Rep_ti_contents`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Rep_ti_contents`. * @returns {Rep_ti_contents} */ static _from_object(_o: { [_K in keyof Rep_ti_contents]: Rep_ti_contents[_K]; }): Rep_ti_contents; } /** * @summary The Leading Root Component Types of Rep_ti_contents * @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_ti_contents: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Rep_ti_contents * @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_ti_contents: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Rep_ti_contents * @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_ti_contents: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Rep_ti_contents * @function * @param {_Element} el The element being decoded. * @returns {Rep_ti_contents} The decoded data structure. */ export declare function _decode_Rep_ti_contents(el: _Element): Rep_ti_contents; /** * @summary Encodes a(n) Rep_ti_contents 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_ti_contents, encoded as an ASN.1 Element. */ export declare function _encode_Rep_ti_contents(value: Rep_ti_contents, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=Rep-ti-contents.ta.d.mts.map