@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
27 lines (26 loc) • 973 B
TypeScript
import ProtectionStrategy from '../crypto/strategies/ProtectionStrategy';
import { IPayloadProtection } from '../crypto/protocols/IPayloadProtection';
import CryptoFactory from '../crypto/plugin/CryptoFactory';
/**
* Class used to model registrar crypto options
*/
export default class RegistrarCryptoOptions {
private cryptoFactory;
private payloadProtection;
/**
* Constructs a new instance of the @class RegistrarCryptoOptions
* @param cryptoFactory used for crypto operations.
* @param payloadProtection used for the specified protocol.
*/
constructor(cryptoFactory: CryptoFactory, payloadProtection: IPayloadProtection);
/**
* Get or set the authentication algorithm.
* Conform to the JWA standard
*/
signingAlgorithm: string;
/**
* Get or set the authentication algorithm.
* Conform to the JWA standard
*/
readonly protectionStrategy: ProtectionStrategy;
}