import { OPTIONAL, INTEGER, OCTET_STRING, UTF8String, GeneralizedTime, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { ResponseStatus } from '../SCVP-2009/ResponseStatus.ta.mjs'; import { RespValidationPolicy } from '../SCVP-2009/RespValidationPolicy.ta.mjs'; import { RequestReference } from '../SCVP-2009/RequestReference.ta.mjs'; import { type GeneralNames } from '@wildboar/x500/CertificateExtensions'; import { ReplyObjects } from '../SCVP-2009/ReplyObjects.ta.mjs'; import { type Extensions } from '@wildboar/x500/AuthenticationFramework'; /** * @summary CVResponse * @description * * ### ASN.1 Definition: * * ```asn1 * CVResponse ::= SEQUENCE { * cvResponseVersion INTEGER, * serverConfigurationID INTEGER, * producedAt GeneralizedTime, * responseStatus ResponseStatus, * respValidationPolicy [0] RespValidationPolicy OPTIONAL, * requestRef [1] RequestReference OPTIONAL, * requestorRef [2] GeneralNames OPTIONAL, * requestorName [3] GeneralNames OPTIONAL, * replyObjects [4] ReplyObjects OPTIONAL, * respNonce [5] OCTET STRING OPTIONAL, * serverContextInfo [6] OCTET STRING OPTIONAL, * cvResponseExtensions [7] Extensions{{CVResponseExtensions}} * OPTIONAL, * requestorText [8] UTF8String (SIZE (1..256)) OPTIONAL * } * ``` * */ export declare class CVResponse { /** * @summary `cvResponseVersion`. * @public * @readonly */ readonly cvResponseVersion: INTEGER; /** * @summary `serverConfigurationID`. * @public * @readonly */ readonly serverConfigurationID: INTEGER; /** * @summary `producedAt`. * @public * @readonly */ readonly producedAt: GeneralizedTime; /** * @summary `responseStatus`. * @public * @readonly */ readonly responseStatus: ResponseStatus; /** * @summary `respValidationPolicy`. * @public * @readonly */ readonly respValidationPolicy?: OPTIONAL; /** * @summary `requestRef`. * @public * @readonly */ readonly requestRef?: OPTIONAL; /** * @summary `requestorRef`. * @public * @readonly */ readonly requestorRef?: OPTIONAL; /** * @summary `requestorName`. * @public * @readonly */ readonly requestorName?: OPTIONAL; /** * @summary `replyObjects`. * @public * @readonly */ readonly replyObjects?: OPTIONAL; /** * @summary `respNonce`. * @public * @readonly */ readonly respNonce?: OPTIONAL; /** * @summary `serverContextInfo`. * @public * @readonly */ readonly serverContextInfo?: OPTIONAL; /** * @summary `cvResponseExtensions`. * @public * @readonly */ readonly cvResponseExtensions?: OPTIONAL; /** * @summary `requestorText`. * @public * @readonly */ readonly requestorText?: OPTIONAL; constructor( /** * @summary `cvResponseVersion`. * @public * @readonly */ cvResponseVersion: INTEGER, /** * @summary `serverConfigurationID`. * @public * @readonly */ serverConfigurationID: INTEGER, /** * @summary `producedAt`. * @public * @readonly */ producedAt: GeneralizedTime, /** * @summary `responseStatus`. * @public * @readonly */ responseStatus: ResponseStatus, /** * @summary `respValidationPolicy`. * @public * @readonly */ respValidationPolicy?: OPTIONAL, /** * @summary `requestRef`. * @public * @readonly */ requestRef?: OPTIONAL, /** * @summary `requestorRef`. * @public * @readonly */ requestorRef?: OPTIONAL, /** * @summary `requestorName`. * @public * @readonly */ requestorName?: OPTIONAL, /** * @summary `replyObjects`. * @public * @readonly */ replyObjects?: OPTIONAL, /** * @summary `respNonce`. * @public * @readonly */ respNonce?: OPTIONAL, /** * @summary `serverContextInfo`. * @public * @readonly */ serverContextInfo?: OPTIONAL, /** * @summary `cvResponseExtensions`. * @public * @readonly */ cvResponseExtensions?: OPTIONAL, /** * @summary `requestorText`. * @public * @readonly */ requestorText?: OPTIONAL); /** * @summary Restructures an object into a CVResponse * @description * * This takes an `object` and converts it to a `CVResponse`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CVResponse`. * @returns {CVResponse} */ static _from_object(_o: { [_K in keyof CVResponse]: CVResponse[_K]; }): CVResponse; } /** * @summary The Leading Root Component Types of CVResponse * @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_CVResponse: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CVResponse * @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_CVResponse: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CVResponse * @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_CVResponse: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CVResponse * @function * @param {_Element} el The element being decoded. * @returns {CVResponse} The decoded data structure. */ export declare function _decode_CVResponse(el: _Element): CVResponse; /** * @summary Encodes a(n) CVResponse 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 CVResponse, encoded as an ASN.1 Element. */ export declare function _encode_CVResponse(value: CVResponse, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=CVResponse.ta.d.mts.map