Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
names: {
blockName: "issuer"
}
},
serialNumber: "serialNumber"
}
})
);
if(asn1.verified === false)
throw new Error("Object's schema was not verified against input data for IssuerSerial");
//endregion
//region Get internal properties from parsed schema
// noinspection JSUnusedGlobalSymbols
this.issuer = new GeneralNames({ schema: asn1.result.issuer });
// noinspection JSUnusedGlobalSymbols
this.serialNumber = asn1.result.serialNumber;
//endregion
}
//**********************************************************************************
result => {
_this.certHash = new asn1js.OctetString({ valueHex: result });
_this.issuerSerial = new IssuerSerial({
issuer: new GeneralNames({
names: [
new GeneralName({
type: 4,
value: certificate.issuer
})
]
}),
serialNumber: certificate.serialNumber
});
},
error => Promise.reject(error)
result => {
if(_this.otherCertHash instanceof asn1js.OctetString)
_this.otherCertHash.valueBlock.valueHex = result;
else
_this.otherCertHash.hashValue = new asn1js.OctetString({ valueHex: result });
_this.issuerSerial = new IssuerSerial({
issuer: new GeneralNames({
names: [
new GeneralName({
type: 4,
value: certificate.issuer
})
]
}),
serialNumber: certificate.serialNumber
});
},
error => Promise.reject(error)
static defaultValues(memberName)
{
switch(memberName)
{
case "issuer":
return new GeneralNames();
case "serialNumber":
return new asn1js.Integer();
default:
throw new Error(`Invalid member name for IssuerSerial class: ${memberName}`);
}
}
//**********************************************************************************