import { OPTIONAL, OBJECT_IDENTIFIER, GeneralizedTime, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { CertReference } from '../SCVP-2009/CertReference.ta.mjs'; import { ReplyStatus, _enum_for_ReplyStatus } from '../SCVP-2009/ReplyStatus.ta.mjs'; import { ReplyChecks } from '../SCVP-2009/ReplyChecks.ta.mjs'; import { ReplyWantBacks } from '../SCVP-2009/ReplyWantBacks.ta.mjs'; import { Extensions } from '@wildboar/x500/AuthenticationFramework'; /** * @summary CertReply * @description * * ### ASN.1 Definition: * * ```asn1 * CertReply ::= SEQUENCE { * cert CertReference, * replyStatus ReplyStatus DEFAULT success, * replyValTime GeneralizedTime, * replyChecks ReplyChecks, * replyWantBacks ReplyWantBacks, * validationErrors [0] SEQUENCE SIZE (1..MAX) OF * OBJECT IDENTIFIER ( BasicValidationErrorSet | * NameValidationErrorSet, * ... ) OPTIONAL, * nextUpdate [1] GeneralizedTime OPTIONAL, * certReplyExtensions [2] Extensions{{...}} OPTIONAL * } * ``` * */ export declare class CertReply { /** * @summary `cert`. * @public * @readonly */ readonly cert: CertReference; /** * @summary `replyStatus`. * @public * @readonly */ readonly replyStatus: OPTIONAL; /** * @summary `replyValTime`. * @public * @readonly */ readonly replyValTime: GeneralizedTime; /** * @summary `replyChecks`. * @public * @readonly */ readonly replyChecks: ReplyChecks; /** * @summary `replyWantBacks`. * @public * @readonly */ readonly replyWantBacks: ReplyWantBacks; /** * @summary `validationErrors`. * @public * @readonly */ readonly validationErrors?: OPTIONAL; /** * @summary `nextUpdate`. * @public * @readonly */ readonly nextUpdate?: OPTIONAL; /** * @summary `certReplyExtensions`. * @public * @readonly */ readonly certReplyExtensions?: OPTIONAL; constructor( /** * @summary `cert`. * @public * @readonly */ cert: CertReference, /** * @summary `replyStatus`. * @public * @readonly */ replyStatus: OPTIONAL, /** * @summary `replyValTime`. * @public * @readonly */ replyValTime: GeneralizedTime, /** * @summary `replyChecks`. * @public * @readonly */ replyChecks: ReplyChecks, /** * @summary `replyWantBacks`. * @public * @readonly */ replyWantBacks: ReplyWantBacks, /** * @summary `validationErrors`. * @public * @readonly */ validationErrors?: OPTIONAL, /** * @summary `nextUpdate`. * @public * @readonly */ nextUpdate?: OPTIONAL, /** * @summary `certReplyExtensions`. * @public * @readonly */ certReplyExtensions?: OPTIONAL); /** * @summary Restructures an object into a CertReply * @description * * This takes an `object` and converts it to a `CertReply`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CertReply`. * @returns {CertReply} */ static _from_object(_o: { [_K in keyof CertReply]: CertReply[_K]; }): CertReply; /** * @summary Getter that returns the default value for `replyStatus`. * @public * @static * @method */ static get _default_value_for_replyStatus(): ReplyStatus; /** * @summary The enum used as the type of the component `replyStatus` * @public * @static */ static _enum_for_replyStatus: typeof _enum_for_ReplyStatus; } /** * @summary The Leading Root Component Types of CertReply * @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_CertReply: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CertReply * @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_CertReply: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CertReply * @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_CertReply: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CertReply * @function * @param {_Element} el The element being decoded. * @returns {CertReply} The decoded data structure. */ export declare function _decode_CertReply(el: _Element): CertReply; /** * @summary Encodes a(n) CertReply 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 CertReply, encoded as an ASN.1 Element. */ export declare function _encode_CertReply(value: CertReply, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=CertReply.ta.d.mts.map