UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

28 lines (27 loc) 850 B
import { IPayloadProtectionStrategy } from "./IPayloadProtectionStrategy"; import IPayloadProtectionOptions from "../protocols/IPayloadProtectionOptions"; /** * Class used to model the message signing strategy */ export default class PayloadSigningStrategy implements IPayloadProtectionStrategy { /** * Get or set a value to enable or disable message signing */ enabled: boolean; /** * Get or set the serialization format. */ serializationFormat: string; /** * Options used for the protection mechanisms */ protectionOptions: IPayloadProtectionOptions; /** * Get or set the key message signing algorithm as JWA. */ payloadSignerAlgorithm: string; /** * Get or set the key encryption algorithm as JWA. */ digestAlgorithm: string; }