UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

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