UNPKG

@wildboar/pkcs

Version:
116 lines 3.77 kB
import { ASN1Element as _Element, BIT_STRING } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "../PKCS-10/AlgorithmIdentifier.ta.mjs"; import { CertificationRequestInfo } from "../PKCS-10/CertificationRequestInfo.ta.mjs"; /** * @summary CertificationRequest * @description * * ### ASN.1 Definition: * * ```asn1 * CertificationRequest ::= SEQUENCE { * certificationRequestInfo CertificationRequestInfo, * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, * signature BIT STRING * } * ``` * */ export declare class CertificationRequest { /** * @summary `certificationRequestInfo`. * @public * @readonly */ readonly certificationRequestInfo: CertificationRequestInfo; /** * @summary `signatureAlgorithm`. * @public * @readonly */ readonly signatureAlgorithm: AlgorithmIdentifier; /** * @summary `signature`. * @public * @readonly */ readonly signature: BIT_STRING; constructor( /** * @summary `certificationRequestInfo`. * @public * @readonly */ certificationRequestInfo: CertificationRequestInfo, /** * @summary `signatureAlgorithm`. * @public * @readonly */ signatureAlgorithm: AlgorithmIdentifier, /** * @summary `signature`. * @public * @readonly */ signature: BIT_STRING); /** * @summary Restructures an object into a CertificationRequest * @description * * This takes an `object` and converts it to a `CertificationRequest`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CertificationRequest`. * @returns {CertificationRequest} */ static _from_object(_o: { [_K in keyof CertificationRequest]: CertificationRequest[_K]; }): CertificationRequest; } /** * @summary The Leading Root Component Types of CertificationRequest * @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_CertificationRequest: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CertificationRequest * @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_CertificationRequest: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CertificationRequest * @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_CertificationRequest: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CertificationRequest * @function * @param {_Element} el The element being decoded. * @returns {CertificationRequest} The decoded data structure. */ export declare function _decode_CertificationRequest(el: _Element): CertificationRequest; /** * @summary Encodes a(n) CertificationRequest 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 CertificationRequest, encoded as an ASN.1 Element. */ export declare function _encode_CertificationRequest(value: CertificationRequest, elGetter: $.ASN1Encoder<CertificationRequest>): _Element; //# sourceMappingURL=CertificationRequest.ta.d.mts.map