x509-ts
Version:
Encode and decode X.509 (TLS) Certificates, Attribute Certificates, CRLs, and more.
19 lines • 675 B
TypeScript
import { DERElement, ObjectIdentifier } from "asn1-ts";
import Context from "./Context";
export default class Attribute {
readonly type: ObjectIdentifier;
readonly values: DERElement[];
readonly valuesWithContext: {
value: DERElement;
contextList: Context[];
}[] | undefined;
constructor(type: ObjectIdentifier, values: DERElement[], valuesWithContext: {
value: DERElement;
contextList: Context[];
}[] | undefined);
static fromElement(value: DERElement): Attribute;
toElement(): DERElement;
static fromBytes(value: Uint8Array): Attribute;
toBytes(): Uint8Array;
}
//# sourceMappingURL=Attribute.d.ts.map