import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "../AuthenticationFramework/AlgorithmIdentifier.ta.mjs"; import { Integrity } from "../SpkmGssTokens/Integrity.ta.mjs"; import { Req_contents } from "../SpkmGssTokens/Req-contents.ta.mjs"; /** * @summary REQ_TOKEN * @description * * ### ASN.1 Definition: * * ```asn1 * REQ-TOKEN ::= SEQUENCE { * req-contents Req-contents, * algId AlgorithmIdentifier{{SupportedAlgorithms}}, * req-integrity Integrity -- "token" is Req-contents * } * ``` * */ export declare class REQ_TOKEN { /** * @summary `req_contents`. * @public * @readonly */ readonly req_contents: Req_contents; /** * @summary `algId`. * @public * @readonly */ readonly algId: AlgorithmIdentifier; /** * @summary `req_integrity`. * @public * @readonly */ readonly req_integrity: Integrity; constructor( /** * @summary `req_contents`. * @public * @readonly */ req_contents: Req_contents, /** * @summary `algId`. * @public * @readonly */ algId: AlgorithmIdentifier, /** * @summary `req_integrity`. * @public * @readonly */ req_integrity: Integrity); /** * @summary Restructures an object into a REQ_TOKEN * @description * * This takes an `object` and converts it to a `REQ_TOKEN`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `REQ_TOKEN`. * @returns {REQ_TOKEN} */ static _from_object(_o: { [_K in keyof REQ_TOKEN]: REQ_TOKEN[_K]; }): REQ_TOKEN; } /** * @summary The Leading Root Component Types of REQ_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_REQ_TOKEN: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of REQ_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_REQ_TOKEN: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of REQ_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_REQ_TOKEN: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) REQ_TOKEN * @function * @param {_Element} el The element being decoded. * @returns {REQ_TOKEN} The decoded data structure. */ export declare function _decode_REQ_TOKEN(el: _Element): REQ_TOKEN; /** * @summary Encodes a(n) REQ_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 REQ_TOKEN, encoded as an ASN.1 Element. */ export declare function _encode_REQ_TOKEN(value: REQ_TOKEN, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=REQ-TOKEN.ta.d.mts.map