UNPKG

@peculiar/asn1-x509

Version:

ASN.1 schema for X.509 certificates, certificate revocation lists, and related profile structures defined in RFC 5280.

29 lines (28 loc) 760 B
import { AsnArray, OctetString } from "@peculiar/asn1-schema"; /** * ```asn1 * Extension ::= SEQUENCE { * extnID OBJECT IDENTIFIER, * critical BOOLEAN DEFAULT FALSE, * extnValue OCTET STRING * -- contains the DER encoding of an ASN.1 value * -- corresponding to the extension type identified * -- by extnID * } * ``` */ export declare class Extension { static CRITICAL: boolean; extnID: string; critical: boolean; extnValue: OctetString; constructor(params?: Partial<Extension>); } /** * ```asn1 * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension * ``` */ export declare class Extensions extends AsnArray<Extension> { constructor(items?: Extension[]); }