signicat-client-ts
Version:
Community TypeScript client for Signicat Authentication REST API with automatic token management
32 lines (31 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncryptionKey = void 0;
var EncryptionKey;
(function (EncryptionKey) {
/**
* Key type of the JWK, specifying the cryptographic algorithm family used with the key.
*/
let kty;
(function (kty) {
kty["RSA"] = "rsa";
kty["EC"] = "ec";
})(kty = EncryptionKey.kty || (EncryptionKey.kty = {}));
/**
* Identifies the intended use of the key. Values defined by this specification are sig (signature) and enc (encryption).
*/
let use;
(function (use) {
use["ENC"] = "enc";
})(use = EncryptionKey.use || (EncryptionKey.use = {}));
/**
* Identifies the cryptographic algorithm family used with the key.
* If kty is set to RSA needs to be RSA-OAEP.
* If kty is set to EC needs to be ECDH-ES.
*/
let alg;
(function (alg) {
alg["RSA_OAEP"] = "RSA-OAEP";
alg["ECDH_ES"] = "ECDH-ES";
})(alg = EncryptionKey.alg || (EncryptionKey.alg = {}));
})(EncryptionKey || (exports.EncryptionKey = EncryptionKey = {}));