UNPKG

@wildboar/qc

Version:
39 lines (38 loc) 1.54 kB
import * as $ from "@wildboar/asn1/functional"; import { userApplications /* IMPORTED_SHORT_ENUMERATION_ITEM */, } from "@wildboar/x500/InformationFramework"; import { id_pda_countryOfResidence } from "../PKIXqualified97/id-pda-countryOfResidence.va.mjs"; /** * @summary countryOfResidence * @description * * ### ASN.1 Definition: * * ```asn1 * countryOfResidence ATTRIBUTE ::= { * WITH SYNTAX PrintableString (SIZE (2)) * (CONSTRAINED BY { -- ISO 3166 codes only -- }) * ID id-pda-countryOfResidence } * ``` * * @constant * @type {ATTRIBUTE<PrintableString>} * @implements {ATTRIBUTE<PrintableString>} */ export const countryOfResidence = { class: "ATTRIBUTE", decoderFor: { "&Type": $._decodePrintableString, }, encoderFor: { "&Type": $._encodePrintableString, }, "&id": id_pda_countryOfResidence /* OBJECT_FIELD_SETTING */ /* UNIQUE_OBJECT_FIELD_SETTING */, "&Type": 0 /* OBJECT_FIELD_SETTING OBJECT_TYPE_FIELD_SETTING */, "&single-valued": false /* OBJECT_FIELD_SETTING DEFAULT_OBJECT_FIELD_SETTING */, "&collective": false /* OBJECT_FIELD_SETTING DEFAULT_OBJECT_FIELD_SETTING */, "&dummy": 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 */, "&obsolete": false /* OBJECT_FIELD_SETTING DEFAULT_OBJECT_FIELD_SETTING */, }; /* eslint-enable */