@guarani/jose
Version:
Implementation of the RFCs of the JOSE Working Group.
21 lines (20 loc) • 777 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonWebEncryptionCompressionAlgorithm = void 0;
/**
* Abstract Base Class for the JSON Web Encryption Compression Algorithms.
*
* All JSON Web Encryption Compression Algorithms supported by Guarani **MUST** extend this base class
* and implement its abstract methods.
*/
class JsonWebEncryptionCompressionAlgorithm {
/**
* Instantiates a new JSON Web Encryption Compression Algorithm to Compress and Decompress a Plaintext.
*
* @param algorithm Name of the JSON Web Encryption Compression Algorithm.
*/
constructor(algorithm) {
this.algorithm = algorithm;
}
}
exports.JsonWebEncryptionCompressionAlgorithm = JsonWebEncryptionCompressionAlgorithm;