UNPKG

@wildboar/pki-stub

Version:
46 lines 1.21 kB
import { OBJECT_IDENTIFIER, UTF8String } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; /** * @summary ATTRIBUTE * @description * * ### ASN.1 Definition: * * ```asn1 * ATTRIBUTE ::= CLASS { * &type UTF8String, * &id OBJECT IDENTIFIER UNIQUE } * WITH SYNTAX { * WITH SYNTAX &type * ID &id } * ``` * * @interface */ export interface ATTRIBUTE { /** * @summary A fixed string that can be used for external programs to determine the object class of this object. */ readonly class: "ATTRIBUTE"; /** * @summary A map of type fields to their corresponding decoders. */ readonly decoderFor: Partial<{ [_K in keyof ATTRIBUTE]: $.ASN1Decoder<ATTRIBUTE[_K]>; }>; /** * @summary A map of type fields to their corresponding encoders. */ readonly encoderFor: Partial<{ [_K in keyof ATTRIBUTE]: $.ASN1Encoder<ATTRIBUTE[_K]>; }>; /** * @summary &type */ readonly "&type"?: UTF8String; /** * @summary &id */ readonly "&id"?: OBJECT_IDENTIFIER; } //# sourceMappingURL=ATTRIBUTE.oca.d.mts.map