@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
30 lines (29 loc) • 841 B
TypeScript
import PayloadSigningStrategy from "./PayloadSigningStrategy";
import PayloadEncryptionStrategy from "./PayloadEncryptionStrategy";
export declare enum ProtectionStrategyScope {
/**
* The protection strategy is applied to the type
*/
type = 0,
/**
* The protection strategy is applied to the object
*/
object = 1
}
/**
* Class used to model protection strategy
*/
export default class ProtectionStrategy {
/**
* Gets or sets the scope on which the protection strategy is used.
*/
scope: ProtectionStrategyScope;
/**
* Gets or sets the message signing strategy.
*/
payloadSigningStrategy: PayloadSigningStrategy;
/**
* Gets or sets the message signing strategy.
*/
PayloadEncryptionStrategy: PayloadEncryptionStrategy;
}