29 lines
760 B
Plaintext
29 lines
760 B
Plaintext
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[]);
|
|
}
|