20 lines
688 B
JavaScript
20 lines
688 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Attribute = void 0;
|
|
const tslib_1 = require("tslib");
|
|
const asn1_schema_1 = require("@peculiar/asn1-schema");
|
|
class Attribute {
|
|
constructor(params = {}) {
|
|
this.attrType = "";
|
|
this.attrValues = [];
|
|
Object.assign(this, params);
|
|
}
|
|
}
|
|
exports.Attribute = Attribute;
|
|
tslib_1.__decorate([
|
|
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
|
|
], Attribute.prototype, "attrType", void 0);
|
|
tslib_1.__decorate([
|
|
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any, repeated: "set" })
|
|
], Attribute.prototype, "attrValues", void 0);
|