import * as asn1js from "asn1js"; import * as pvutils from "pvutils"; import * as Schema from "./Schema"; import { PkiObject, PkiObjectParameters } from "./PkiObject"; import { AsnError } from "./errors";
// Get internal properties from parsed schema this.safeBags = Array.from(asn1.result.safeBags, element => new SafeBag({ schema: element }));
}
public toSchema(): asn1js.Sequence { //#region Construct and return new ASN.1 schema for this object
return (new asn1js.Sequence({
value: Array.from(this.safeBags, o => o.toSchema())
})); //#endregion
}
public toJSON(): SafeContentsJson {
return {
safeBags: Array.from(this.safeBags, o => o.toJSON())
};
}
}
import { SafeBag, SafeBagJson } from "./SafeBag";import { EMPTY_STRING } from "./constants";
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.