import * as asn1js from "asn1js"; import * as pvutils from "pvutils"; import { Attribute, AttributeJson } from "./Attribute"; 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.attributes = Array.from(asn1.result.attributes, element => new Attribute({ schema: element }));
}
public toSchema(): asn1js.Sequence { // Construct and return new ASN.1 schema for this object
return (new asn1js.Sequence({
value: Array.from(this.attributes, o => o.toSchema())
}));
}
public toJSON(): SubjectDirectoryAttributesJson {
return {
attributes: Array.from(this.attributes, 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.