import { OPTIONAL, INTEGER, OCTET_STRING, OBJECT_IDENTIFIER, UTF8String, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { Query } from '../SCVP-2009/Query.ta.mjs'; import { GeneralNames } from '@wildboar/x500/CertificateExtensions'; import { GeneralName } from '@wildboar/x500/CertificateExtensions'; import { Extensions } from '@wildboar/x500/AuthenticationFramework'; import { AlgorithmIdentifier } from '@wildboar/x500/AuthenticationFramework'; /** * @summary CVRequest * @description * * ### ASN.1 Definition: * * ```asn1 * CVRequest ::= SEQUENCE { * cvRequestVersion INTEGER DEFAULT 1, * * query Query, * requestorRef [0] GeneralNames OPTIONAL, * requestNonce [1] OCTET STRING OPTIONAL, * requestorName [2] GeneralName OPTIONAL, * responderName [3] GeneralName OPTIONAL, * requestExtensions [4] Extensions{{RequestExtensions}} * OPTIONAL, * signatureAlg [5] AlgorithmIdentifier * {SIGNATURE-ALGORITHM, * {SignatureAlgorithms}} * OPTIONAL, * hashAlg [6] OBJECT IDENTIFIER OPTIONAL, * requestorText [7] UTF8String (SIZE (1..256)) OPTIONAL * } * ``` * */ export declare class CVRequest { /** * @summary `cvRequestVersion`. * @public * @readonly */ readonly cvRequestVersion: OPTIONAL; /** * @summary `query`. * @public * @readonly */ readonly query: Query; /** * @summary `requestorRef`. * @public * @readonly */ readonly requestorRef?: OPTIONAL; /** * @summary `requestNonce`. * @public * @readonly */ readonly requestNonce?: OPTIONAL; /** * @summary `requestorName`. * @public * @readonly */ readonly requestorName?: OPTIONAL; /** * @summary `responderName`. * @public * @readonly */ readonly responderName?: OPTIONAL; /** * @summary `requestExtensions`. * @public * @readonly */ readonly requestExtensions?: OPTIONAL; /** * @summary `signatureAlg`. * @public * @readonly */ readonly signatureAlg?: OPTIONAL; /** * @summary `hashAlg`. * @public * @readonly */ readonly hashAlg?: OPTIONAL; /** * @summary `requestorText`. * @public * @readonly */ readonly requestorText?: OPTIONAL; constructor( /** * @summary `cvRequestVersion`. * @public * @readonly */ cvRequestVersion: OPTIONAL, /** * @summary `query`. * @public * @readonly */ query: Query, /** * @summary `requestorRef`. * @public * @readonly */ requestorRef?: OPTIONAL, /** * @summary `requestNonce`. * @public * @readonly */ requestNonce?: OPTIONAL, /** * @summary `requestorName`. * @public * @readonly */ requestorName?: OPTIONAL, /** * @summary `responderName`. * @public * @readonly */ responderName?: OPTIONAL, /** * @summary `requestExtensions`. * @public * @readonly */ requestExtensions?: OPTIONAL, /** * @summary `signatureAlg`. * @public * @readonly */ signatureAlg?: OPTIONAL, /** * @summary `hashAlg`. * @public * @readonly */ hashAlg?: OPTIONAL, /** * @summary `requestorText`. * @public * @readonly */ requestorText?: OPTIONAL); /** * @summary Restructures an object into a CVRequest * @description * * This takes an `object` and converts it to a `CVRequest`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CVRequest`. * @returns {CVRequest} */ static _from_object(_o: { [_K in keyof CVRequest]: CVRequest[_K]; }): CVRequest; /** * @summary Getter that returns the default value for `cvRequestVersion`. * @public * @static * @method */ static get _default_value_for_cvRequestVersion(): INTEGER; } /** * @summary The Leading Root Component Types of CVRequest * @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_CVRequest: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CVRequest * @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_CVRequest: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CVRequest * @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_CVRequest: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CVRequest * @function * @param {_Element} el The element being decoded. * @returns {CVRequest} The decoded data structure. */ export declare function _decode_CVRequest(el: _Element): CVRequest; /** * @summary Encodes a(n) CVRequest 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 CVRequest, encoded as an ASN.1 Element. */ export declare function _encode_CVRequest(value: CVRequest, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=CVRequest.ta.d.mts.map