UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

31 lines 1.2 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); const webcrypto_core_1 = require("webcrypto-core"); /** * Implementation of the CryptoKey for RSA * based keys. */ class RsaSubtleKey extends webcrypto_core_1.CryptoKey { /** * Create an instance of RsaSubtleKey * @param algorithm for the key * @param extractable True if key can be extracted * @param usages for the key * @param type of the key (private || public) * @param key to be used */ constructor(algorithm, extractable, usages, type, key) { super(); this.algorithm = algorithm; this.type = type; this.usages = usages; this.extractable = extractable; this.key = key; } } exports.default = RsaSubtleKey; //# sourceMappingURL=RsaSubtleKey.js.map