UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

36 lines 1.44 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 JoseConstants_1 = require("../protocols/jose/JoseConstants"); /** * Class used to model the message signing strategy */ class PayloadSigningStrategy { constructor() { /** * Get or set a value to enable or disable message signing */ this.enabled = true; /** * Get or set the serialization format. */ this.serializationFormat = JoseConstants_1.default.serializationJwsFlatJson; /** * Options used for the protection mechanisms */ this.protectionOptions = {}; /** * Get or set the key message signing algorithm as JWA. */ this.payloadSignerAlgorithm = JoseConstants_1.default.Es256K; /** * Get or set the key encryption algorithm as JWA. */ this.digestAlgorithm = JoseConstants_1.default.Sha256; } } exports.default = PayloadSigningStrategy; //# sourceMappingURL=PayloadSigningStrategy.js.map