UNPKG

@wildboar/pkcs

Version:
40 lines (39 loc) 1.54 kB
/* eslint-disable */ import * as $ from "@wildboar/asn1/functional"; import { _decode_Attribute, _encode_Attribute, } from "@wildboar/x500/InformationFramework"; import { userApplications /* IMPORTED_SHORT_ENUMERATION_ITEM */, } from "@wildboar/x500/InformationFramework"; import { pkcs_9_at_extendedCertificateAttributes } from "../PKCS-9/pkcs-9-at-extendedCertificateAttributes.va.mjs"; /** * @summary extendedCertificateAttributes * @description * * ### ASN.1 Definition: * * ```asn1 * extendedCertificateAttributes ATTRIBUTE ::= { * WITH SYNTAX SET OF Attribute * SINGLE VALUE TRUE * ID pkcs-9-at-extendedCertificateAttributes * } * ``` * * @constant * @type {ATTRIBUTE<Attribute[]>} * @implements {ATTRIBUTE<Attribute[]>} */ export const extendedCertificateAttributes = { class: "ATTRIBUTE", decoderFor: { "&Type": $._decodeSetOf(() => _decode_Attribute), }, encoderFor: { "&Type": $._encodeSetOf(() => _encode_Attribute, $.BER), }, "&single-valued": false /* OBJECT_FIELD_SETTING */, "&id": pkcs_9_at_extendedCertificateAttributes /* OBJECT_FIELD_SETTING */ /* UNIQUE_OBJECT_FIELD_SETTING */, "&Type": 0 /* OBJECT_FIELD_SETTING OBJECT_TYPE_FIELD_SETTING */, "&collective": false /* OBJECT_FIELD_SETTING DEFAULT_OBJECT_FIELD_SETTING */, "&no-user-modification": false /* OBJECT_FIELD_SETTING DEFAULT_OBJECT_FIELD_SETTING */, "&usage": userApplications /* OBJECT_FIELD_SETTING DEFAULT_OBJECT_FIELD_SETTING */, }; /* eslint-enable */