| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import { __decorate } from "tslib";
- import { AsnProp, AsnPropTypes, AsnIntegerArrayBufferConverter, } from "@peculiar/asn1-schema";
- import { AlgorithmIdentifier, Attribute, Extensions, } from "@peculiar/asn1-x509";
- import { Holder } from "./holder.js";
- import { AttCertIssuer } from "./attr_cert_issuer.js";
- import { AttCertValidityPeriod } from "./attr_cert_validity_period.js";
- export var AttCertVersion;
- (function (AttCertVersion) {
- AttCertVersion[AttCertVersion["v2"] = 1] = "v2";
- })(AttCertVersion || (AttCertVersion = {}));
- export class AttributeCertificateInfo {
- version = AttCertVersion.v2;
- holder = new Holder();
- issuer = new AttCertIssuer();
- signature = new AlgorithmIdentifier();
- serialNumber = new ArrayBuffer(0);
- attrCertValidityPeriod = new AttCertValidityPeriod();
- attributes = [];
- issuerUniqueID;
- extensions;
- constructor(params = {}) {
- Object.assign(this, params);
- }
- }
- __decorate([
- AsnProp({ type: AsnPropTypes.Integer })
- ], AttributeCertificateInfo.prototype, "version", void 0);
- __decorate([
- AsnProp({ type: Holder })
- ], AttributeCertificateInfo.prototype, "holder", void 0);
- __decorate([
- AsnProp({ type: AttCertIssuer })
- ], AttributeCertificateInfo.prototype, "issuer", void 0);
- __decorate([
- AsnProp({ type: AlgorithmIdentifier })
- ], AttributeCertificateInfo.prototype, "signature", void 0);
- __decorate([
- AsnProp({
- type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter,
- })
- ], AttributeCertificateInfo.prototype, "serialNumber", void 0);
- __decorate([
- AsnProp({ type: AttCertValidityPeriod })
- ], AttributeCertificateInfo.prototype, "attrCertValidityPeriod", void 0);
- __decorate([
- AsnProp({
- type: Attribute, repeated: "sequence",
- })
- ], AttributeCertificateInfo.prototype, "attributes", void 0);
- __decorate([
- AsnProp({
- type: AsnPropTypes.BitString, optional: true,
- })
- ], AttributeCertificateInfo.prototype, "issuerUniqueID", void 0);
- __decorate([
- AsnProp({
- type: Extensions, optional: true,
- })
- ], AttributeCertificateInfo.prototype, "extensions", void 0);
|