@wildboar/ocsp
Version:
Online Certificate Status Protocol PDUs in TypeScript
152 lines • 4.42 kB
text/typescript
import { ASN1Element as _Element, GeneralizedTime, OPTIONAL } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { Extensions } from "@wildboar/pki-stub";
import { ResponderID } from "../OCSP-2013-08/ResponderID.ta.mjs";
import { SingleResponse } from "../OCSP-2013-08/SingleResponse.ta.mjs";
import { Version } from "../OCSP-2013-08/Version.ta.mjs";
/**
* @summary ResponseData
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* ResponseData ::= SEQUENCE {
* version [0] EXPLICIT Version DEFAULT v1,
* responderID ResponderID,
* producedAt GeneralizedTime,
* responses SEQUENCE OF SingleResponse,
* responseExtensions [1] EXPLICIT Extensions
* {{re-ocsp-nonce, ...,
* re-ocsp-extended-revoke}} OPTIONAL }
* ```
*
*/
export declare class ResponseData {
/**
* @summary `version`.
* @public
* @readonly
*/
readonly version: OPTIONAL<Version>;
/**
* @summary `responderID`.
* @public
* @readonly
*/
readonly responderID: ResponderID;
/**
* @summary `producedAt`.
* @public
* @readonly
*/
readonly producedAt: GeneralizedTime;
/**
* @summary `responses`.
* @public
* @readonly
*/
readonly responses: SingleResponse[];
/**
* @summary `responseExtensions`.
* @public
* @readonly
*/
readonly responseExtensions: OPTIONAL<Extensions>;
constructor(
/**
* @summary `version`.
* @public
* @readonly
*/
version: OPTIONAL<Version>,
/**
* @summary `responderID`.
* @public
* @readonly
*/
responderID: ResponderID,
/**
* @summary `producedAt`.
* @public
* @readonly
*/
producedAt: GeneralizedTime,
/**
* @summary `responses`.
* @public
* @readonly
*/
responses: SingleResponse[],
/**
* @summary `responseExtensions`.
* @public
* @readonly
*/
responseExtensions: OPTIONAL<Extensions>);
/**
* @summary Restructures an object into a ResponseData
* @description
*
* This takes an `object` and converts it to a `ResponseData`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `ResponseData`.
* @returns {ResponseData}
*/
static _from_object(_o: {
[_K in keyof ResponseData]: ResponseData[_K];
}): ResponseData;
/**
* @summary Getter that returns the default value for `version`.
* @public
* @static
* @method
*/
static get _default_value_for_version(): Version;
}
/**
* @summary The Leading Root Component Types of ResponseData
* @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_ResponseData: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of ResponseData
* @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_ResponseData: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of ResponseData
* @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_ResponseData: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) ResponseData
* @function
* @param {_Element} el The element being decoded.
* @returns {ResponseData} The decoded data structure.
*/
export declare function _decode_ResponseData(el: _Element): ResponseData;
/**
* @summary Encodes a(n) ResponseData 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 ResponseData, encoded as an ASN.1 Element.
*/
export declare function _encode_ResponseData(value: ResponseData, elGetter: $.ASN1Encoder<ResponseData>): _Element;
//# sourceMappingURL=ResponseData.ta.d.mts.map