import { OPTIONAL, INTEGER, OCTET_STRING, OBJECT_IDENTIFIER, GeneralizedTime, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { CertChecks } from '../SCVP-2009/CertChecks.ta.mjs'; import { WantBack } from '../SCVP-2009/WantBack.ta.mjs'; import { AuthPolicy } from '../SCVP-2009/AuthPolicy.ta.mjs'; import { ResponseTypes, _enum_for_ResponseTypes } from '../SCVP-2009/ResponseTypes.ta.mjs'; import { RespValidationPolicy } from '../SCVP-2009/RespValidationPolicy.ta.mjs'; import { RevocationInfoTypes } from '../SCVP-2009/RevocationInfoTypes.ta.mjs'; import { AlgorithmIdentifier } from '@wildboar/x500/AuthenticationFramework'; import { KeyAgreePublicKey } from '../SCVP-2009/KeyAgreePublicKey.ta.mjs'; /** * @summary ValPolResponse * @description * * ### ASN.1 Definition: * * ```asn1 * ValPolResponse ::= SEQUENCE { * vpResponseVersion INTEGER, * maxCVRequestVersion INTEGER, * maxVPRequestVersion INTEGER, * serverConfigurationID INTEGER, * thisUpdate GeneralizedTime, * nextUpdate GeneralizedTime OPTIONAL, * supportedChecks CertChecks, * supportedWantBacks WantBack, * validationPolicies SEQUENCE OF OBJECT IDENTIFIER, * validationAlgs SEQUENCE OF OBJECT IDENTIFIER, * authPolicies SEQUENCE OF AuthPolicy, * responseTypes ResponseTypes, * defaultPolicyValues RespValidationPolicy, * revocationInfoTypes RevocationInfoTypes, * signatureGeneration SEQUENCE OF AlgorithmIdentifier * {SIGNATURE-ALGORITHM, * {SignatureAlgorithms}}, * signatureVerification SEQUENCE OF AlgorithmIdentifier * {SIGNATURE-ALGORITHM, * {SignatureAlgorithms}}, * hashAlgorithms SEQUENCE SIZE (1..MAX) OF * OBJECT IDENTIFIER, * serverPublicKeys SEQUENCE OF KeyAgreePublicKey * OPTIONAL, * clockSkew INTEGER DEFAULT 10, * requestNonce OCTET STRING OPTIONAL * } * ``` * */ export declare class ValPolResponse { /** * @summary `vpResponseVersion`. * @public * @readonly */ readonly vpResponseVersion: INTEGER; /** * @summary `maxCVRequestVersion`. * @public * @readonly */ readonly maxCVRequestVersion: INTEGER; /** * @summary `maxVPRequestVersion`. * @public * @readonly */ readonly maxVPRequestVersion: INTEGER; /** * @summary `serverConfigurationID`. * @public * @readonly */ readonly serverConfigurationID: INTEGER; /** * @summary `thisUpdate`. * @public * @readonly */ readonly thisUpdate: GeneralizedTime; /** * @summary `nextUpdate`. * @public * @readonly */ readonly nextUpdate: OPTIONAL; /** * @summary `supportedChecks`. * @public * @readonly */ readonly supportedChecks: CertChecks; /** * @summary `supportedWantBacks`. * @public * @readonly */ readonly supportedWantBacks: WantBack; /** * @summary `validationPolicies`. * @public * @readonly */ readonly validationPolicies: OBJECT_IDENTIFIER[]; /** * @summary `validationAlgs`. * @public * @readonly */ readonly validationAlgs: OBJECT_IDENTIFIER[]; /** * @summary `authPolicies`. * @public * @readonly */ readonly authPolicies: AuthPolicy[]; /** * @summary `responseTypes`. * @public * @readonly */ readonly responseTypes: ResponseTypes; /** * @summary `defaultPolicyValues`. * @public * @readonly */ readonly defaultPolicyValues: RespValidationPolicy; /** * @summary `revocationInfoTypes`. * @public * @readonly */ readonly revocationInfoTypes: RevocationInfoTypes; /** * @summary `signatureGeneration`. * @public * @readonly */ readonly signatureGeneration: AlgorithmIdentifier[]; /** * @summary `signatureVerification`. * @public * @readonly */ readonly signatureVerification: AlgorithmIdentifier[]; /** * @summary `hashAlgorithms`. * @public * @readonly */ readonly hashAlgorithms: OBJECT_IDENTIFIER[]; /** * @summary `serverPublicKeys`. * @public * @readonly */ readonly serverPublicKeys?: OPTIONAL; /** * @summary `clockSkew`. * @public * @readonly */ readonly clockSkew?: OPTIONAL; /** * @summary `requestNonce`. * @public * @readonly */ readonly requestNonce?: OPTIONAL; constructor( /** * @summary `vpResponseVersion`. * @public * @readonly */ vpResponseVersion: INTEGER, /** * @summary `maxCVRequestVersion`. * @public * @readonly */ maxCVRequestVersion: INTEGER, /** * @summary `maxVPRequestVersion`. * @public * @readonly */ maxVPRequestVersion: INTEGER, /** * @summary `serverConfigurationID`. * @public * @readonly */ serverConfigurationID: INTEGER, /** * @summary `thisUpdate`. * @public * @readonly */ thisUpdate: GeneralizedTime, /** * @summary `nextUpdate`. * @public * @readonly */ nextUpdate: OPTIONAL, /** * @summary `supportedChecks`. * @public * @readonly */ supportedChecks: CertChecks, /** * @summary `supportedWantBacks`. * @public * @readonly */ supportedWantBacks: WantBack, /** * @summary `validationPolicies`. * @public * @readonly */ validationPolicies: OBJECT_IDENTIFIER[], /** * @summary `validationAlgs`. * @public * @readonly */ validationAlgs: OBJECT_IDENTIFIER[], /** * @summary `authPolicies`. * @public * @readonly */ authPolicies: AuthPolicy[], /** * @summary `responseTypes`. * @public * @readonly */ responseTypes: ResponseTypes, /** * @summary `defaultPolicyValues`. * @public * @readonly */ defaultPolicyValues: RespValidationPolicy, /** * @summary `revocationInfoTypes`. * @public * @readonly */ revocationInfoTypes: RevocationInfoTypes, /** * @summary `signatureGeneration`. * @public * @readonly */ signatureGeneration: AlgorithmIdentifier[], /** * @summary `signatureVerification`. * @public * @readonly */ signatureVerification: AlgorithmIdentifier[], /** * @summary `hashAlgorithms`. * @public * @readonly */ hashAlgorithms: OBJECT_IDENTIFIER[], /** * @summary `serverPublicKeys`. * @public * @readonly */ serverPublicKeys?: OPTIONAL, /** * @summary `clockSkew`. * @public * @readonly */ clockSkew?: OPTIONAL, /** * @summary `requestNonce`. * @public * @readonly */ requestNonce?: OPTIONAL); /** * @summary Restructures an object into a ValPolResponse * @description * * This takes an `object` and converts it to a `ValPolResponse`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `ValPolResponse`. * @returns {ValPolResponse} */ static _from_object(_o: { [_K in keyof ValPolResponse]: ValPolResponse[_K]; }): ValPolResponse; /** * @summary Getter that returns the default value for `clockSkew`. * @public * @static * @method */ static get _default_value_for_clockSkew(): INTEGER; /** * @summary The enum used as the type of the component `responseTypes` * @public * @static */ static _enum_for_responseTypes: typeof _enum_for_ResponseTypes; } /** * @summary The Leading Root Component Types of ValPolResponse * @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_ValPolResponse: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of ValPolResponse * @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_ValPolResponse: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of ValPolResponse * @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_ValPolResponse: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) ValPolResponse * @function * @param {_Element} el The element being decoded. * @returns {ValPolResponse} The decoded data structure. */ export declare function _decode_ValPolResponse(el: _Element): ValPolResponse; /** * @summary Encodes a(n) ValPolResponse 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 ValPolResponse, encoded as an ASN.1 Element. */ export declare function _encode_ValPolResponse(value: ValPolResponse, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=ValPolResponse.ta.d.mts.map