UNPKG

@wildboar/pkcs

Version:
144 lines 4.87 kB
import { ASN1Element as _Element, OBJECT_IDENTIFIER, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AttributeCertificate } from "@wildboar/x500/AttributeCertificateDefinitions"; import { CertificateSerialNumber } from "@wildboar/x500/AuthenticationFramework"; import { GeneralNames } from "@wildboar/x500/CertificateExtensions"; import { ObjectValue } from "../PKCS-15/ObjectValue.ta.mjs"; /** * @summary X509AttributeCertificateAttributes * @description * * ### ASN.1 Definition: * * ```asn1 * X509AttributeCertificateAttributes ::= SEQUENCE { * value ObjectValue { AttributeCertificate }, * issuer GeneralNames OPTIONAL, * serialNumber CertificateSerialNumber OPTIONAL, * attrTypes [0] SEQUENCE OF OBJECT IDENTIFIER OPTIONAL, * ... -- For future extensions * } * ``` * */ export declare class X509AttributeCertificateAttributes { /** * @summary `value`. * @public * @readonly */ readonly value: ObjectValue<AttributeCertificate>; /** * @summary `issuer`. * @public * @readonly */ readonly issuer?: OPTIONAL<GeneralNames>; /** * @summary `serialNumber`. * @public * @readonly */ readonly serialNumber?: OPTIONAL<CertificateSerialNumber>; /** * @summary `attrTypes`. * @public * @readonly */ readonly attrTypes?: OPTIONAL<OBJECT_IDENTIFIER[]>; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `value`. * @public * @readonly */ value: ObjectValue<AttributeCertificate>, /** * @summary `issuer`. * @public * @readonly */ issuer?: OPTIONAL<GeneralNames>, /** * @summary `serialNumber`. * @public * @readonly */ serialNumber?: OPTIONAL<CertificateSerialNumber>, /** * @summary `attrTypes`. * @public * @readonly */ attrTypes?: OPTIONAL<OBJECT_IDENTIFIER[]>, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a X509AttributeCertificateAttributes * @description * * This takes an `object` and converts it to a `X509AttributeCertificateAttributes`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `X509AttributeCertificateAttributes`. * @returns {X509AttributeCertificateAttributes} */ static _from_object(_o: { [_K in keyof X509AttributeCertificateAttributes]: X509AttributeCertificateAttributes[_K]; }): X509AttributeCertificateAttributes; } /** * @summary The Leading Root Component Types of X509AttributeCertificateAttributes * @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_X509AttributeCertificateAttributes: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of X509AttributeCertificateAttributes * @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_X509AttributeCertificateAttributes: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of X509AttributeCertificateAttributes * @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_X509AttributeCertificateAttributes: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) X509AttributeCertificateAttributes * @function * @param {_Element} el The element being decoded. * @returns {X509AttributeCertificateAttributes} The decoded data structure. */ export declare function _decode_X509AttributeCertificateAttributes(el: _Element): X509AttributeCertificateAttributes; /** * @summary Encodes a(n) X509AttributeCertificateAttributes 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 X509AttributeCertificateAttributes, encoded as an ASN.1 Element. */ export declare function _encode_X509AttributeCertificateAttributes(value: X509AttributeCertificateAttributes, elGetter: $.ASN1Encoder<X509AttributeCertificateAttributes>): _Element; //# sourceMappingURL=X509AttributeCertificateAttributes.ta.d.mts.map