Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
20 lines
582 B
Plaintext
20 lines
582 B
Plaintext
import { __decorate } from "tslib";
|
|
import { AsnProp } from "@peculiar/asn1-schema";
|
|
import { Time } from "./time";
|
|
export class Validity {
|
|
constructor(params) {
|
|
this.notBefore = new Time(new Date());
|
|
this.notAfter = new Time(new Date());
|
|
if (params) {
|
|
this.notBefore = new Time(params.notBefore);
|
|
this.notAfter = new Time(params.notAfter);
|
|
}
|
|
}
|
|
}
|
|
__decorate([
|
|
AsnProp({ type: Time })
|
|
], Validity.prototype, "notBefore", void 0);
|
|
__decorate([
|
|
AsnProp({ type: Time })
|
|
], Validity.prototype, "notAfter", void 0);
|