| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- var Targets_1;
- import { __decorate } from "tslib";
- import { AsnProp, AsnType, AsnTypeTypes, AsnArray, } from "@peculiar/asn1-schema";
- import { GeneralName } from "@peculiar/asn1-x509";
- import { IssuerSerial } from "./issuer_serial.js";
- import { ObjectDigestInfo } from "./object_digest_info.js";
- export class TargetCert {
- targetCertificate = new IssuerSerial();
- targetName;
- certDigestInfo;
- constructor(params = {}) {
- Object.assign(this, params);
- }
- }
- __decorate([
- AsnProp({ type: IssuerSerial })
- ], TargetCert.prototype, "targetCertificate", void 0);
- __decorate([
- AsnProp({
- type: GeneralName, optional: true,
- })
- ], TargetCert.prototype, "targetName", void 0);
- __decorate([
- AsnProp({
- type: ObjectDigestInfo, optional: true,
- })
- ], TargetCert.prototype, "certDigestInfo", void 0);
- let Target = class Target {
- targetName;
- targetGroup;
- targetCert;
- constructor(params = {}) {
- Object.assign(this, params);
- }
- };
- __decorate([
- AsnProp({
- type: GeneralName, context: 0, implicit: true,
- })
- ], Target.prototype, "targetName", void 0);
- __decorate([
- AsnProp({
- type: GeneralName, context: 1, implicit: true,
- })
- ], Target.prototype, "targetGroup", void 0);
- __decorate([
- AsnProp({
- type: TargetCert, context: 2, implicit: true,
- })
- ], Target.prototype, "targetCert", void 0);
- Target = __decorate([
- AsnType({ type: AsnTypeTypes.Choice })
- ], Target);
- export { Target };
- let Targets = Targets_1 = class Targets extends AsnArray {
- constructor(items) {
- super(items);
- Object.setPrototypeOf(this, Targets_1.prototype);
- }
- };
- Targets = Targets_1 = __decorate([
- AsnType({
- type: AsnTypeTypes.Sequence, itemType: Target,
- })
- ], Targets);
- export { Targets };
|