@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
36 lines • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const JoseConstants_1 = require("../protocols/jose/JoseConstants");
/**
* Class used to model encryption strategies
*/
class PayloadEncryptionStrategy {
constructor() {
/**
* Get or set a value to enable or disable encryption
*/
this.enabled = true;
/**
* Get or set the serialization format.
*/
this.serializationFormat = JoseConstants_1.default.serializationJweFlatJson;
/**
* Options used for the protection mechanisms
*/
this.protectionOptions = {};
/**
* Get or set the key encryption algorithm as JWA.
*/
this.keyEncrypterAlgorithm = JoseConstants_1.default.RsaOaep256;
/**
* Get or set the key encryption algorithm as JWA.
*/
this.symmetricEncrypterAlgorithm = JoseConstants_1.default.AesGcm128;
}
}
exports.default = PayloadEncryptionStrategy;
//# sourceMappingURL=PayloadEncryptionStrategy.js.map