import * as asn1js from "asn1js"; import * as pvutils from "pvutils"; import { AccessDescription, AccessDescriptionJson } from "./AccessDescription"; import { EMPTY_STRING } from "./constants"; import { AsnError } from "./errors"; import { PkiObject, PkiObjectParameters } from "./PkiObject"; import * as Schema from "./Schema";
// Get internal properties from parsed schema this.accessDescriptions = Array.from(asn1.result.accessDescriptions, element => new AccessDescription({ schema: element }));
}
public toSchema(): asn1js.Sequence { // Construct and return new ASN.1 schema for this object
return (new asn1js.Sequence({
value: Array.from(this.accessDescriptions, o => o.toSchema())
}));
}
public toJSON(): InfoAccessJson {
return {
accessDescriptions: Array.from(this.accessDescriptions, o => o.toJSON())
};
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.