ctjs
Version:
CTjs is a full set of classes necessary to work with any kind of Certificate Transparency log (V1 as from RFC6962, or V2 as from RFC6962-bis). In CTjs you could find all necessary validation/verification functions for all related data shipped with full-fe
30 lines (29 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
//**************************************************************************************
class LogEntryType {
//**********************************************************************************
constructor() {
throw new Error("Only calls to static functions allowed for namespace 'LogEntryType'");
}
//**********************************************************************************
/**
* Return value for a constant by name
* @param {string} name String name for a constant
*/
static constants(name) {
switch (name) {
case "x509_entry":
return 0;
case "precert_entry":
return 1;
default:
throw new Error(`Invalid constant name for LogEntryType class: ${name}`);
}
}
//**********************************************************************************
}
exports.default = LogEntryType; //**************************************************************************************
//# sourceMappingURL=LogEntryType.js.map