UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

40 lines 1.74 kB
"use strict"; 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 PayloadSigningStrategy_1 = require("./PayloadSigningStrategy"); const PayloadEncryptionStrategy_1 = require("./PayloadEncryptionStrategy"); var ProtectionStrategyScope; (function (ProtectionStrategyScope) { /** * The protection strategy is applied to the type */ ProtectionStrategyScope[ProtectionStrategyScope["type"] = 0] = "type"; /** * The protection strategy is applied to the object */ ProtectionStrategyScope[ProtectionStrategyScope["object"] = 1] = "object"; })(ProtectionStrategyScope = exports.ProtectionStrategyScope || (exports.ProtectionStrategyScope = {})); /** * Class used to model protection strategy */ class ProtectionStrategy { constructor() { /** * Gets or sets the scope on which the protection strategy is used. */ this.scope = ProtectionStrategyScope.type; /** * Gets or sets the message signing strategy. */ this.payloadSigningStrategy = new PayloadSigningStrategy_1.default(); /** * Gets or sets the message signing strategy. */ this.PayloadEncryptionStrategy = new PayloadEncryptionStrategy_1.default(); } } exports.default = ProtectionStrategy; //# sourceMappingURL=ProtectionStrategy.js.map