@sudoplatform/sudo-common 6.3.1 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +2 -1
- package/.yarn/releases/{yarn-1.22.18.cjs → yarn-1.22.19.cjs} +13 -4
- package/.yarnrc +1 -1
- package/bin/outdated-with-suppression.sh +117 -11
- package/bin/suppress-outdated.sh +36 -9
- package/dependencies-report.json +388 -4
- package/docs/assets/highlight.css +11 -11
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +427 -617
- package/docs/classes/AccountLockedError.html +163 -8
- package/docs/classes/AuthenticationError.html +168 -8
- package/docs/classes/Base64.html +134 -3
- package/docs/classes/Buffer.html +158 -3
- package/docs/classes/ConfigurationNotSetError.html +163 -8
- package/docs/classes/ConfigurationSetNotFoundError.html +168 -8
- package/docs/classes/DecodeError.html +168 -8
- package/docs/classes/DefaultConfigurationManager.html +206 -18
- package/docs/classes/DefaultLogger.html +291 -25
- package/docs/classes/DefaultSudoKeyArchive.html +337 -39
- package/docs/classes/DefaultSudoKeyManager.html +857 -63
- package/docs/classes/FatalError.html +168 -8
- package/docs/classes/IllegalArgumentError.html +168 -8
- package/docs/classes/IllegalStateError.html +168 -8
- package/docs/classes/InsufficientEntitlementsError.html +163 -8
- package/docs/classes/InvalidOwnershipProofError.html +163 -8
- package/docs/classes/InvalidTokenError.html +163 -8
- package/docs/classes/KeyArchiveDecodingError.html +168 -8
- package/docs/classes/KeyArchiveIncorrectPasswordError.html +168 -8
- package/docs/classes/KeyArchiveMissingError.html +168 -8
- package/docs/classes/KeyArchiveNoPasswordRequiredError.html +168 -8
- package/docs/classes/KeyArchivePasswordRequiredError.html +168 -8
- package/docs/classes/KeyArchiveTypeError.html +168 -8
- package/docs/classes/KeyArchiveUnknownKeyTypeError.html +168 -8
- package/docs/classes/KeyArchiveVersionError.html +168 -8
- package/docs/classes/KeyNotFoundError.html +168 -8
- package/docs/classes/KeyStoreNotExportableError.html +168 -8
- package/docs/classes/LimitExceededError.html +163 -8
- package/docs/classes/NoEntitlementsError.html +163 -8
- package/docs/classes/NotAuthorizedError.html +168 -8
- package/docs/classes/NotRegisteredError.html +168 -8
- package/docs/classes/NotSignedInError.html +163 -8
- package/docs/classes/OperationNotImplementedError.html +168 -8
- package/docs/classes/RegisterError.html +168 -8
- package/docs/classes/RequestFailedError.html +188 -12
- package/docs/classes/ServiceError.html +168 -8
- package/docs/classes/SignOutError.html +168 -8
- package/docs/classes/SudoCryptoProviderDefaults.html +106 -1
- package/docs/classes/UnknownGraphQLError.html +168 -8
- package/docs/classes/UnrecognizedAlgorithmError.html +168 -8
- package/docs/classes/UserNotConfirmedError.html +163 -8
- package/docs/classes/VersionMismatchError.html +163 -8
- package/docs/enums/CachePolicy.html +71 -3
- package/docs/enums/EncryptionAlgorithm.html +78 -3
- package/docs/enums/KeyArchiveKeyType.html +86 -4
- package/docs/enums/KeyDataKeyFormat.html +84 -10
- package/docs/enums/KeyDataKeyType.html +85 -3
- package/docs/enums/ListOperationResultStatus.html +84 -9
- package/docs/enums/PublicKeyFormat.html +68 -1
- package/docs/functions/isAppSyncNetworkError.html +147 -0
- package/docs/functions/isInsecureKeyArchive.html +147 -0
- package/docs/functions/isSecureKeyArchive.html +147 -0
- package/docs/functions/isUnrecognizedKeyArchive.html +147 -0
- package/docs/functions/keyArchiveInfoFromKeyData.html +147 -0
- package/docs/functions/keyArchiveKeyTypeFromKeyDataKeyType.html +147 -0
- package/docs/functions/mapGraphQLToClientError.html +154 -0
- package/docs/functions/mapNetworkErrorToClientError.html +154 -0
- package/docs/index.html +134 -2
- package/docs/interfaces/AsymmetricEncryptionOptions.html +68 -3
- package/docs/interfaces/BooleanFilter.html +75 -3
- package/docs/interfaces/ConfigurationManager.html +191 -35
- package/docs/interfaces/KeyData.html +106 -8
- package/docs/interfaces/ListOperationFailureResult.html +76 -5
- package/docs/interfaces/ListOperationPartialResult.html +101 -9
- package/docs/interfaces/ListOperationSuccessResult.html +90 -7
- package/docs/interfaces/ListOutput.html +80 -3
- package/docs/interfaces/Logger.html +251 -45
- package/docs/interfaces/Owner.html +72 -1
- package/docs/interfaces/PublicKey.html +72 -1
- package/docs/interfaces/ServiceCompatibilityInfo.html +106 -13
- package/docs/interfaces/StringFilter.html +82 -3
- package/docs/interfaces/SudoCryptoProvider.html +902 -175
- package/docs/interfaces/SudoKeyArchive.html +245 -42
- package/docs/interfaces/SudoKeyManager.html +884 -169
- package/docs/interfaces/SymmetricEncryptionOptions.html +75 -3
- package/docs/interfaces/ValidationResult.html +79 -7
- package/docs/modules.html +248 -33
- package/docs/types/AppSyncError.html +138 -0
- package/docs/types/AppSyncNetworkError.html +138 -0
- package/docs/types/InsecureKeyArchive.html +138 -0
- package/docs/types/KeyArchive.html +138 -0
- package/docs/types/KeyArchiveKeyInfo.html +154 -0
- package/docs/types/KeyArchiveKeyInfoDecoded.html +138 -0
- package/docs/types/ListOperationResult.html +148 -0
- package/docs/types/SecureKeyArchive.html +138 -0
- package/docs/types/Subset.html +144 -0
- package/docs/types/UnrecognizedKeyArchive.html +138 -0
- package/docs/variables/CURRENT_ARCHIVE_VERSION.html +138 -0
- package/docs/variables/InsecureKeyArchiveCodec.html +138 -0
- package/docs/variables/InsecureKeyArchiveType.html +138 -0
- package/docs/variables/KeyArchiveCodec.html +138 -0
- package/docs/variables/KeyArchiveKeyInfoArrayCodec.html +138 -0
- package/docs/variables/KeyArchiveKeyInfoCodec.html +138 -0
- package/docs/variables/KeyArchiveKeyTypeCodec.html +138 -0
- package/docs/variables/SecureKeyArchiveCodec.html +138 -0
- package/docs/variables/SecureKeyArchiveType.html +138 -0
- package/docs/variables/UnrecognizedKeyArchiveCodec.html +138 -0
- package/github/.gitignore +2 -1
- package/github/.yarn/releases/{yarn-1.22.18.cjs → yarn-1.22.19.cjs} +13 -4
- package/github/.yarnrc +1 -1
- package/github/bin/outdated-with-suppression.sh +117 -11
- package/github/bin/suppress-outdated.sh +36 -9
- package/github/docs/assets/highlight.css +11 -11
- package/github/docs/assets/main.js +4 -2
- package/github/docs/assets/search.js +1 -1
- package/github/docs/assets/style.css +427 -617
- package/github/docs/classes/AccountLockedError.html +163 -8
- package/github/docs/classes/AuthenticationError.html +168 -8
- package/github/docs/classes/Base64.html +134 -3
- package/github/docs/classes/Buffer.html +158 -3
- package/github/docs/classes/ConfigurationNotSetError.html +163 -8
- package/github/docs/classes/ConfigurationSetNotFoundError.html +168 -8
- package/github/docs/classes/DecodeError.html +168 -8
- package/github/docs/classes/DefaultConfigurationManager.html +206 -18
- package/github/docs/classes/DefaultLogger.html +291 -25
- package/github/docs/classes/DefaultSudoKeyArchive.html +337 -39
- package/github/docs/classes/DefaultSudoKeyManager.html +857 -63
- package/github/docs/classes/FatalError.html +168 -8
- package/github/docs/classes/IllegalArgumentError.html +168 -8
- package/github/docs/classes/IllegalStateError.html +168 -8
- package/github/docs/classes/InsufficientEntitlementsError.html +163 -8
- package/github/docs/classes/InvalidOwnershipProofError.html +163 -8
- package/github/docs/classes/InvalidTokenError.html +163 -8
- package/github/docs/classes/KeyArchiveDecodingError.html +168 -8
- package/github/docs/classes/KeyArchiveIncorrectPasswordError.html +168 -8
- package/github/docs/classes/KeyArchiveMissingError.html +168 -8
- package/github/docs/classes/KeyArchiveNoPasswordRequiredError.html +168 -8
- package/github/docs/classes/KeyArchivePasswordRequiredError.html +168 -8
- package/github/docs/classes/KeyArchiveTypeError.html +168 -8
- package/github/docs/classes/KeyArchiveUnknownKeyTypeError.html +168 -8
- package/github/docs/classes/KeyArchiveVersionError.html +168 -8
- package/github/docs/classes/KeyNotFoundError.html +168 -8
- package/github/docs/classes/KeyStoreNotExportableError.html +168 -8
- package/github/docs/classes/LimitExceededError.html +163 -8
- package/github/docs/classes/NoEntitlementsError.html +163 -8
- package/github/docs/classes/NotAuthorizedError.html +168 -8
- package/github/docs/classes/NotRegisteredError.html +168 -8
- package/github/docs/classes/NotSignedInError.html +163 -8
- package/github/docs/classes/OperationNotImplementedError.html +168 -8
- package/github/docs/classes/RegisterError.html +168 -8
- package/github/docs/classes/RequestFailedError.html +188 -12
- package/github/docs/classes/ServiceError.html +168 -8
- package/github/docs/classes/SignOutError.html +168 -8
- package/github/docs/classes/SudoCryptoProviderDefaults.html +106 -1
- package/github/docs/classes/UnknownGraphQLError.html +168 -8
- package/github/docs/classes/UnrecognizedAlgorithmError.html +168 -8
- package/github/docs/classes/UserNotConfirmedError.html +163 -8
- package/github/docs/classes/VersionMismatchError.html +163 -8
- package/github/docs/enums/CachePolicy.html +71 -3
- package/github/docs/enums/EncryptionAlgorithm.html +78 -3
- package/github/docs/enums/KeyArchiveKeyType.html +86 -4
- package/github/docs/enums/KeyDataKeyFormat.html +84 -10
- package/github/docs/enums/KeyDataKeyType.html +85 -3
- package/github/docs/enums/ListOperationResultStatus.html +84 -9
- package/github/docs/enums/PublicKeyFormat.html +68 -1
- package/github/docs/functions/isAppSyncNetworkError.html +147 -0
- package/github/docs/functions/isInsecureKeyArchive.html +147 -0
- package/github/docs/functions/isSecureKeyArchive.html +147 -0
- package/github/docs/functions/isUnrecognizedKeyArchive.html +147 -0
- package/github/docs/functions/keyArchiveInfoFromKeyData.html +147 -0
- package/github/docs/functions/keyArchiveKeyTypeFromKeyDataKeyType.html +147 -0
- package/github/docs/functions/mapGraphQLToClientError.html +154 -0
- package/github/docs/functions/mapNetworkErrorToClientError.html +154 -0
- package/github/docs/index.html +134 -2
- package/github/docs/interfaces/AsymmetricEncryptionOptions.html +68 -3
- package/github/docs/interfaces/BooleanFilter.html +75 -3
- package/github/docs/interfaces/ConfigurationManager.html +191 -35
- package/github/docs/interfaces/KeyData.html +106 -8
- package/github/docs/interfaces/ListOperationFailureResult.html +76 -5
- package/github/docs/interfaces/ListOperationPartialResult.html +101 -9
- package/github/docs/interfaces/ListOperationSuccessResult.html +90 -7
- package/github/docs/interfaces/ListOutput.html +80 -3
- package/github/docs/interfaces/Logger.html +251 -45
- package/github/docs/interfaces/Owner.html +72 -1
- package/github/docs/interfaces/PublicKey.html +72 -1
- package/github/docs/interfaces/ServiceCompatibilityInfo.html +106 -13
- package/github/docs/interfaces/StringFilter.html +82 -3
- package/github/docs/interfaces/SudoCryptoProvider.html +902 -175
- package/github/docs/interfaces/SudoKeyArchive.html +245 -42
- package/github/docs/interfaces/SudoKeyManager.html +884 -169
- package/github/docs/interfaces/SymmetricEncryptionOptions.html +75 -3
- package/github/docs/interfaces/ValidationResult.html +79 -7
- package/github/docs/modules.html +248 -33
- package/github/docs/types/AppSyncError.html +138 -0
- package/github/docs/types/AppSyncNetworkError.html +138 -0
- package/github/docs/types/InsecureKeyArchive.html +138 -0
- package/github/docs/types/KeyArchive.html +138 -0
- package/github/docs/types/KeyArchiveKeyInfo.html +154 -0
- package/github/docs/types/KeyArchiveKeyInfoDecoded.html +138 -0
- package/github/docs/types/ListOperationResult.html +148 -0
- package/github/docs/types/SecureKeyArchive.html +138 -0
- package/github/docs/types/Subset.html +144 -0
- package/github/docs/types/UnrecognizedKeyArchive.html +138 -0
- package/github/docs/variables/CURRENT_ARCHIVE_VERSION.html +138 -0
- package/github/docs/variables/InsecureKeyArchiveCodec.html +138 -0
- package/github/docs/variables/InsecureKeyArchiveType.html +138 -0
- package/github/docs/variables/KeyArchiveCodec.html +138 -0
- package/github/docs/variables/KeyArchiveKeyInfoArrayCodec.html +138 -0
- package/github/docs/variables/KeyArchiveKeyInfoCodec.html +138 -0
- package/github/docs/variables/KeyArchiveKeyTypeCodec.html +138 -0
- package/github/docs/variables/SecureKeyArchiveCodec.html +138 -0
- package/github/docs/variables/SecureKeyArchiveType.html +138 -0
- package/github/docs/variables/UnrecognizedKeyArchiveCodec.html +138 -0
- package/github/package.json +25 -17
- package/github/src/sudoKeyArchive/sudoKeyArchive.ts +1 -1
- package/github/src/sudoKeyManager/sudoCryptoProvider.ts +61 -1
- package/github/src/sudoKeyManager/sudoKeyManager.ts +84 -0
- package/github/test/unit/sudoKeyManager.spec.ts +41 -0
- package/github/yarn.lock +1012 -735
- package/lib/sudoKeyArchive/sudoKeyArchive.d.ts +1 -1
- package/lib/sudoKeyArchive/sudoKeyArchive.js +1 -1
- package/lib/sudoKeyManager/sudoCryptoProvider.d.ts +49 -1
- package/lib/sudoKeyManager/sudoCryptoProvider.js +2 -0
- package/lib/sudoKeyManager/sudoKeyManager.d.ts +46 -0
- package/lib/sudoKeyManager/sudoKeyManager.js +20 -0
- package/package.json +26 -18
- package/src/sudoKeyArchive/sudoKeyArchive.ts +1 -1
- package/src/sudoKeyManager/sudoCryptoProvider.ts +61 -1
- package/src/sudoKeyManager/sudoKeyManager.ts +84 -0
- package/test/unit/sudoKeyManager.spec.ts +41 -0
- package/yarn.lock +1012 -735
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/github/docs/assets/icons.css +0 -1043
- package/github/docs/assets/icons.png +0 -0
- package/github/docs/assets/icons@2x.png +0 -0
|
@@ -1,175 +1,890 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SudoKeyManager | @sudoplatform/sudo-common</title><meta name="description" content="Documentation for @sudoplatform/sudo-common"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.
|
|
2
|
-
<
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SudoKeyManager | @sudoplatform/sudo-common</title><meta name="description" content="Documentation for @sudoplatform/sudo-common"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<ul class="results">
|
|
6
|
+
<li class="state loading">Preparing search index...</li>
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@sudoplatform/sudo-common</a></div>
|
|
8
|
+
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
|
+
<div class="container container-main">
|
|
10
|
+
<div class="col-8 col-content">
|
|
11
|
+
<div class="tsd-page-title">
|
|
12
|
+
<ul class="tsd-breadcrumb">
|
|
13
|
+
<li><a href="../modules.html">@sudoplatform/sudo-common</a></li>
|
|
14
|
+
<li><a href="SudoKeyManager.html">SudoKeyManager</a></li></ul>
|
|
15
|
+
<h1>Interface SudoKeyManager</h1></div>
|
|
16
|
+
<section class="tsd-panel tsd-comment">
|
|
17
|
+
<div class="tsd-comment tsd-typography"><p>Interface for a set of methods for securely storing keys and performing
|
|
3
18
|
cryptographic operations.</p>
|
|
4
|
-
</div></
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
</div></
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
</div></section>
|
|
20
|
+
<section class="tsd-panel tsd-hierarchy">
|
|
21
|
+
<h4>Hierarchy</h4>
|
|
22
|
+
<ul class="tsd-hierarchy">
|
|
23
|
+
<li><span class="target">SudoKeyManager</span></li></ul></section>
|
|
24
|
+
<section class="tsd-panel">
|
|
25
|
+
<h4>Implemented by</h4>
|
|
26
|
+
<ul class="tsd-hierarchy">
|
|
27
|
+
<li><a href="../classes/DefaultSudoKeyManager.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultSudoKeyManager</a></li></ul></section><aside class="tsd-sources">
|
|
28
|
+
<ul>
|
|
29
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:14</li></ul></aside>
|
|
30
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
31
|
+
<section class="tsd-panel tsd-index-panel">
|
|
32
|
+
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
33
|
+
<h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary>
|
|
34
|
+
<div class="tsd-accordion-details">
|
|
35
|
+
<section class="tsd-index-section">
|
|
36
|
+
<h3 class="tsd-index-heading">Properties</h3>
|
|
37
|
+
<div class="tsd-index-list"><a href="SudoKeyManager.html#namespace" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>namespace</span></a>
|
|
38
|
+
<a href="SudoKeyManager.html#serviceName" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>service<wbr/>Name</span></a>
|
|
39
|
+
</div></section>
|
|
40
|
+
<section class="tsd-index-section">
|
|
41
|
+
<h3 class="tsd-index-heading">Methods</h3>
|
|
42
|
+
<div class="tsd-index-list"><a href="SudoKeyManager.html#addPassword" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>add<wbr/>Password</span></a>
|
|
43
|
+
<a href="SudoKeyManager.html#addPrivateKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>add<wbr/>Private<wbr/>Key</span></a>
|
|
44
|
+
<a href="SudoKeyManager.html#addPublicKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>add<wbr/>Public<wbr/>Key</span></a>
|
|
45
|
+
<a href="SudoKeyManager.html#addSymmetricKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>add<wbr/>Symmetric<wbr/>Key</span></a>
|
|
46
|
+
<a href="SudoKeyManager.html#decryptWithPrivateKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>decrypt<wbr/>With<wbr/>Private<wbr/>Key</span></a>
|
|
47
|
+
<a href="SudoKeyManager.html#decryptWithSymmetricKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key</span></a>
|
|
48
|
+
<a href="SudoKeyManager.html#decryptWithSymmetricKeyName" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name</span></a>
|
|
49
|
+
<a href="SudoKeyManager.html#deleteKeyPair" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>delete<wbr/>Key<wbr/>Pair</span></a>
|
|
50
|
+
<a href="SudoKeyManager.html#deletePassword" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>delete<wbr/>Password</span></a>
|
|
51
|
+
<a href="SudoKeyManager.html#deletePublicKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>delete<wbr/>Public<wbr/>Key</span></a>
|
|
52
|
+
<a href="SudoKeyManager.html#deleteSymmetricKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>delete<wbr/>Symmetric<wbr/>Key</span></a>
|
|
53
|
+
<a href="SudoKeyManager.html#doesPrivateKeyExist" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>does<wbr/>Private<wbr/>Key<wbr/>Exist</span></a>
|
|
54
|
+
<a href="SudoKeyManager.html#doesPrivateKeyExists" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>does<wbr/>Private<wbr/>Key<wbr/>Exists</span></a>
|
|
55
|
+
<a href="SudoKeyManager.html#doesSymmetricKeyExist" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>does<wbr/>Symmetric<wbr/>Key<wbr/>Exist</span></a>
|
|
56
|
+
<a href="SudoKeyManager.html#doesSymmetricKeyExists" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>does<wbr/>Symmetric<wbr/>Key<wbr/>Exists</span></a>
|
|
57
|
+
<a href="SudoKeyManager.html#encryptWithPublicKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>encrypt<wbr/>With<wbr/>Public<wbr/>Key</span></a>
|
|
58
|
+
<a href="SudoKeyManager.html#encryptWithSymmetricKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key</span></a>
|
|
59
|
+
<a href="SudoKeyManager.html#encryptWithSymmetricKeyName" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name</span></a>
|
|
60
|
+
<a href="SudoKeyManager.html#exportKeys" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>export<wbr/>Keys</span></a>
|
|
61
|
+
<a href="SudoKeyManager.html#generateHash" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>generate<wbr/>Hash</span></a>
|
|
62
|
+
<a href="SudoKeyManager.html#generateKeyPair" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>generate<wbr/>Key<wbr/>Pair</span></a>
|
|
63
|
+
<a href="SudoKeyManager.html#generateRandomData" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>generate<wbr/>Random<wbr/>Data</span></a>
|
|
64
|
+
<a href="SudoKeyManager.html#generateSignatureWithPrivateKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>generate<wbr/>Signature<wbr/>With<wbr/>Private<wbr/>Key</span></a>
|
|
65
|
+
<a href="SudoKeyManager.html#generateSymmetricKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>generate<wbr/>Symmetric<wbr/>Key</span></a>
|
|
66
|
+
<a href="SudoKeyManager.html#generateSymmetricKeyFromPassword" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>generate<wbr/>Symmetric<wbr/>Key<wbr/>From<wbr/>Password</span></a>
|
|
67
|
+
<a href="SudoKeyManager.html#getPassword" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Password</span></a>
|
|
68
|
+
<a href="SudoKeyManager.html#getPrivateKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Private<wbr/>Key</span></a>
|
|
69
|
+
<a href="SudoKeyManager.html#getPublicKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Public<wbr/>Key</span></a>
|
|
70
|
+
<a href="SudoKeyManager.html#getSymmetricKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Symmetric<wbr/>Key</span></a>
|
|
71
|
+
<a href="SudoKeyManager.html#removeAllKeys" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>remove<wbr/>All<wbr/>Keys</span></a>
|
|
72
|
+
<a href="SudoKeyManager.html#updatePassword" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>update<wbr/>Password</span></a>
|
|
73
|
+
<a href="SudoKeyManager.html#verifySignatureWithPublicKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>verify<wbr/>Signature<wbr/>With<wbr/>Public<wbr/>Key</span></a>
|
|
74
|
+
</div></section></div></details></section></section>
|
|
75
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
76
|
+
<h2>Properties</h2>
|
|
77
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="namespace" class="tsd-anchor"></a>
|
|
78
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>namespace</span><a href="#namespace" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
79
|
+
<div class="tsd-signature">namespace<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
80
|
+
<ul>
|
|
81
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:15</li></ul></aside></section>
|
|
82
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="serviceName" class="tsd-anchor"></a>
|
|
83
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>service<wbr/>Name</span><a href="#serviceName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
84
|
+
<div class="tsd-signature">service<wbr/>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
85
|
+
<ul>
|
|
86
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:16</li></ul></aside></section></section>
|
|
87
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
88
|
+
<h2>Methods</h2>
|
|
89
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="addPassword" class="tsd-anchor"></a>
|
|
90
|
+
<h3 class="tsd-anchor-link"><span>add<wbr/>Password</span><a href="#addPassword" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
91
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
92
|
+
<li class="tsd-signature tsd-anchor-link" id="addPassword.addPassword-1">add<wbr/>Password<span class="tsd-signature-symbol">(</span>password<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#addPassword.addPassword-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
93
|
+
<li class="tsd-description">
|
|
94
|
+
<div class="tsd-comment tsd-typography"><p>Adds as password to the secure store.</p>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="tsd-parameters">
|
|
97
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
98
|
+
<ul class="tsd-parameter-list">
|
|
99
|
+
<li>
|
|
100
|
+
<h5>password: <span class="tsd-signature-type">ArrayBuffer</span></h5></li>
|
|
101
|
+
<li>
|
|
102
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
103
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
104
|
+
<ul>
|
|
105
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:23</li></ul></aside></li></ul></section>
|
|
106
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="addPrivateKey" class="tsd-anchor"></a>
|
|
107
|
+
<h3 class="tsd-anchor-link"><span>add<wbr/>Private<wbr/>Key</span><a href="#addPrivateKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
108
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
109
|
+
<li class="tsd-signature tsd-anchor-link" id="addPrivateKey.addPrivateKey-1">add<wbr/>Private<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#addPrivateKey.addPrivateKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
110
|
+
<li class="tsd-description">
|
|
111
|
+
<div class="tsd-comment tsd-typography"><p>Adds a private key to the secure store.</p>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="tsd-parameters">
|
|
114
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
115
|
+
<ul class="tsd-parameter-list">
|
|
116
|
+
<li>
|
|
117
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
118
|
+
<div class="tsd-comment tsd-typography"><p>The private key to store securely.</p>
|
|
119
|
+
</div></li>
|
|
120
|
+
<li>
|
|
121
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
122
|
+
<div class="tsd-comment tsd-typography"><p>The name of the private key to be stored.</p>
|
|
123
|
+
</div></li></ul></div>
|
|
124
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
125
|
+
<ul>
|
|
126
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:95</li></ul></aside></li></ul></section>
|
|
127
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="addPublicKey" class="tsd-anchor"></a>
|
|
128
|
+
<h3 class="tsd-anchor-link"><span>add<wbr/>Public<wbr/>Key</span><a href="#addPublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
129
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
130
|
+
<li class="tsd-signature tsd-anchor-link" id="addPublicKey.addPublicKey-1">add<wbr/>Public<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#addPublicKey.addPublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
131
|
+
<li class="tsd-description">
|
|
132
|
+
<div class="tsd-comment tsd-typography"><p>Adds a public key to the secure store.</p>
|
|
133
|
+
<p>The format of the public key should be SubjectPublicKeyInfo (spki)</p>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="tsd-parameters">
|
|
136
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
137
|
+
<ul class="tsd-parameter-list">
|
|
138
|
+
<li>
|
|
139
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
140
|
+
<div class="tsd-comment tsd-typography"><p>The public key to store securely.</p>
|
|
141
|
+
</div></li>
|
|
142
|
+
<li>
|
|
143
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
144
|
+
<div class="tsd-comment tsd-typography"><p>The name of the public key to be stored.</p>
|
|
145
|
+
</div></li></ul></div>
|
|
146
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
147
|
+
<ul>
|
|
148
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:130</li></ul></aside></li></ul></section>
|
|
149
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="addSymmetricKey" class="tsd-anchor"></a>
|
|
150
|
+
<h3 class="tsd-anchor-link"><span>add<wbr/>Symmetric<wbr/>Key</span><a href="#addSymmetricKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
151
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
152
|
+
<li class="tsd-signature tsd-anchor-link" id="addSymmetricKey.addSymmetricKey-1">add<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#addSymmetricKey.addSymmetricKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
153
|
+
<li class="tsd-description">
|
|
154
|
+
<div class="tsd-comment tsd-typography"><p>Adds a symmetric key to the secure store.</p>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="tsd-parameters">
|
|
157
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
158
|
+
<ul class="tsd-parameter-list">
|
|
159
|
+
<li>
|
|
160
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
161
|
+
<div class="tsd-comment tsd-typography"><p>The symmetric key.</p>
|
|
162
|
+
</div></li>
|
|
163
|
+
<li>
|
|
164
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
165
|
+
<div class="tsd-comment tsd-typography"><p>The name for the symmetric key.</p>
|
|
166
|
+
</div></li></ul></div>
|
|
167
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
168
|
+
<ul>
|
|
169
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:55</li></ul></aside></li></ul></section>
|
|
170
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="decryptWithPrivateKey" class="tsd-anchor"></a>
|
|
171
|
+
<h3 class="tsd-anchor-link"><span>decrypt<wbr/>With<wbr/>Private<wbr/>Key</span><a href="#decryptWithPrivateKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
172
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
173
|
+
<li class="tsd-signature tsd-anchor-link" id="decryptWithPrivateKey.decryptWithPrivateKey-1">decrypt<wbr/>With<wbr/>Private<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><a href="AsymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">AsymmetricEncryptionOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#decryptWithPrivateKey.decryptWithPrivateKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
174
|
+
<li class="tsd-description">
|
|
175
|
+
<div class="tsd-comment tsd-typography"><p>Decrypts the given data with the specified private key.</p>
|
|
176
|
+
|
|
177
|
+
<h3>Returns</h3><p>Decrypted data or undefined if the private key is not found.</p>
|
|
178
|
+
|
|
179
|
+
<h3>Throws</h3><p><a href="../classes/UnrecognizedAlgorithmError.html">UnrecognizedAlgorithmError</a></p>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="tsd-parameters">
|
|
182
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
183
|
+
<ul class="tsd-parameter-list">
|
|
184
|
+
<li>
|
|
185
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
186
|
+
<div class="tsd-comment tsd-typography"><p>The name of the private key to use for decryption.</p>
|
|
187
|
+
</div></li>
|
|
188
|
+
<li>
|
|
189
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
190
|
+
<div class="tsd-comment tsd-typography"><p>The data to decrypt.</p>
|
|
191
|
+
</div></li>
|
|
192
|
+
<li>
|
|
193
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="AsymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">AsymmetricEncryptionOptions</a></h5></li></ul></div>
|
|
194
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
195
|
+
<ul>
|
|
196
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:342</li></ul></aside></li></ul></section>
|
|
197
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="decryptWithSymmetricKey" class="tsd-anchor"></a>
|
|
198
|
+
<h3 class="tsd-anchor-link"><span>decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key</span><a href="#decryptWithSymmetricKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
199
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
200
|
+
<li class="tsd-signature tsd-anchor-link" id="decryptWithSymmetricKey.decryptWithSymmetricKey-1">decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, iv<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#decryptWithSymmetricKey.decryptWithSymmetricKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
201
|
+
<li class="tsd-description">
|
|
202
|
+
<div class="tsd-comment tsd-typography">
|
|
203
|
+
<h3>Deprecated</h3><p>Use version with <code>options</code> param.</p>
|
|
35
204
|
<p>Decrypt the given data with the given symmetric key</p>
|
|
36
|
-
|
|
37
|
-
<p>
|
|
38
|
-
</div
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
205
|
+
|
|
206
|
+
<h3>Returns</h3><p>Decrypted data</p>
|
|
207
|
+
</div>
|
|
208
|
+
<div class="tsd-parameters">
|
|
209
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
210
|
+
<ul class="tsd-parameter-list">
|
|
211
|
+
<li>
|
|
212
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
213
|
+
<div class="tsd-comment tsd-typography"><p>The symmetric key to use to decrypt the data.</p>
|
|
214
|
+
</div></li>
|
|
215
|
+
<li>
|
|
216
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5></li>
|
|
217
|
+
<li>
|
|
218
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> iv: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
219
|
+
<div class="tsd-comment tsd-typography"><p>Optional Initialization Vector.</p>
|
|
220
|
+
</div></li></ul></div>
|
|
221
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
222
|
+
<ul>
|
|
223
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:229</li></ul></aside></li>
|
|
224
|
+
<li class="tsd-signature tsd-anchor-link" id="decryptWithSymmetricKey.decryptWithSymmetricKey-2">decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#decryptWithSymmetricKey.decryptWithSymmetricKey-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
225
|
+
<li class="tsd-description">
|
|
226
|
+
<div class="tsd-comment tsd-typography"><p>Decrypt the given data with the given symmetric key</p>
|
|
227
|
+
|
|
228
|
+
<h3>Returns</h3><p>Decrypted data</p>
|
|
229
|
+
|
|
230
|
+
<h3>Throws</h3><p><a href="../classes/UnrecognizedAlgorithmError.html">UnrecognizedAlgorithmError</a></p>
|
|
231
|
+
</div>
|
|
232
|
+
<div class="tsd-parameters">
|
|
233
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
234
|
+
<ul class="tsd-parameter-list">
|
|
235
|
+
<li>
|
|
236
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
237
|
+
<div class="tsd-comment tsd-typography"><p>The symmetric key to use to decrypt the data.</p>
|
|
238
|
+
</div></li>
|
|
239
|
+
<li>
|
|
240
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5></li>
|
|
241
|
+
<li>
|
|
242
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a></h5></li></ul></div>
|
|
243
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
244
|
+
<ul>
|
|
245
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:245</li></ul></aside></li></ul></section>
|
|
246
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="decryptWithSymmetricKeyName" class="tsd-anchor"></a>
|
|
247
|
+
<h3 class="tsd-anchor-link"><span>decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name</span><a href="#decryptWithSymmetricKeyName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
248
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
249
|
+
<li class="tsd-signature tsd-anchor-link" id="decryptWithSymmetricKeyName.decryptWithSymmetricKeyName-1">decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, iv<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#decryptWithSymmetricKeyName.decryptWithSymmetricKeyName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
250
|
+
<li class="tsd-description">
|
|
251
|
+
<div class="tsd-comment tsd-typography">
|
|
252
|
+
<h3>Deprecated</h3><p>Use version with <code>options</code> param.
|
|
48
253
|
Decrypt the given data with the specified symmetric key stored in the secure store.</p>
|
|
49
|
-
|
|
50
|
-
<p>
|
|
51
|
-
</div
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<p>
|
|
58
|
-
</div
|
|
59
|
-
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<p>
|
|
66
|
-
</div></
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
<
|
|
70
|
-
</
|
|
71
|
-
|
|
72
|
-
<p>
|
|
73
|
-
|
|
74
|
-
<p>
|
|
75
|
-
|
|
76
|
-
<p>
|
|
77
|
-
</div
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<p>The
|
|
88
|
-
</div></
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
254
|
+
|
|
255
|
+
<h3>Returns</h3><p>Decrypted data</p>
|
|
256
|
+
</div>
|
|
257
|
+
<div class="tsd-parameters">
|
|
258
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
259
|
+
<ul class="tsd-parameter-list">
|
|
260
|
+
<li>
|
|
261
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
262
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key to use to decrypt.</p>
|
|
263
|
+
</div></li>
|
|
264
|
+
<li>
|
|
265
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
266
|
+
<div class="tsd-comment tsd-typography"><p>The data to decrypt.</p>
|
|
267
|
+
</div></li>
|
|
268
|
+
<li>
|
|
269
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> iv: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
270
|
+
<div class="tsd-comment tsd-typography"><p>Optional Initialization Vector.</p>
|
|
271
|
+
</div></li></ul></div>
|
|
272
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
273
|
+
<ul>
|
|
274
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:294</li></ul></aside></li>
|
|
275
|
+
<li class="tsd-signature tsd-anchor-link" id="decryptWithSymmetricKeyName.decryptWithSymmetricKeyName-2">decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#decryptWithSymmetricKeyName.decryptWithSymmetricKeyName-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
276
|
+
<li class="tsd-description">
|
|
277
|
+
<div class="tsd-comment tsd-typography"><p>Decrypt the given data with the specified symmetric key stored in the secure store.</p>
|
|
278
|
+
|
|
279
|
+
<h3>Returns</h3><p>Decrypted data</p>
|
|
280
|
+
|
|
281
|
+
<h3>Throws</h3><p><a href="../classes/UnrecognizedAlgorithmError.html">UnrecognizedAlgorithmError</a></p>
|
|
282
|
+
</div>
|
|
283
|
+
<div class="tsd-parameters">
|
|
284
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
285
|
+
<ul class="tsd-parameter-list">
|
|
286
|
+
<li>
|
|
287
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
288
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key to use to decrypt.</p>
|
|
289
|
+
</div></li>
|
|
290
|
+
<li>
|
|
291
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
292
|
+
<div class="tsd-comment tsd-typography"><p>The data to decrypt.</p>
|
|
293
|
+
</div></li>
|
|
294
|
+
<li>
|
|
295
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a></h5></li></ul></div>
|
|
296
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
297
|
+
<ul>
|
|
298
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:310</li></ul></aside></li></ul></section>
|
|
299
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="deleteKeyPair" class="tsd-anchor"></a>
|
|
300
|
+
<h3 class="tsd-anchor-link"><span>delete<wbr/>Key<wbr/>Pair</span><a href="#deleteKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
301
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
302
|
+
<li class="tsd-signature tsd-anchor-link" id="deleteKeyPair.deleteKeyPair-1">delete<wbr/>Key<wbr/>Pair<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deleteKeyPair.deleteKeyPair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
303
|
+
<li class="tsd-description">
|
|
304
|
+
<div class="tsd-comment tsd-typography"><p>Deletes a key pair from the secure store.</p>
|
|
305
|
+
</div>
|
|
306
|
+
<div class="tsd-parameters">
|
|
307
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
308
|
+
<ul class="tsd-parameter-list">
|
|
309
|
+
<li>
|
|
310
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
311
|
+
<div class="tsd-comment tsd-typography"><p>The name of the key pair to be deleted.</p>
|
|
312
|
+
</div></li></ul></div>
|
|
313
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
314
|
+
<ul>
|
|
315
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:155</li></ul></aside></li></ul></section>
|
|
316
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="deletePassword" class="tsd-anchor"></a>
|
|
317
|
+
<h3 class="tsd-anchor-link"><span>delete<wbr/>Password</span><a href="#deletePassword" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
318
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
319
|
+
<li class="tsd-signature tsd-anchor-link" id="deletePassword.deletePassword-1">delete<wbr/>Password<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deletePassword.deletePassword-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
320
|
+
<li class="tsd-description">
|
|
321
|
+
<div class="tsd-comment tsd-typography"><p>Deletes a password from the secure store.</p>
|
|
322
|
+
</div>
|
|
323
|
+
<div class="tsd-parameters">
|
|
324
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
325
|
+
<ul class="tsd-parameter-list">
|
|
326
|
+
<li>
|
|
327
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
328
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
329
|
+
<ul>
|
|
330
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:39</li></ul></aside></li></ul></section>
|
|
331
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="deletePublicKey" class="tsd-anchor"></a>
|
|
332
|
+
<h3 class="tsd-anchor-link"><span>delete<wbr/>Public<wbr/>Key</span><a href="#deletePublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
333
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
334
|
+
<li class="tsd-signature tsd-anchor-link" id="deletePublicKey.deletePublicKey-1">delete<wbr/>Public<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deletePublicKey.deletePublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
335
|
+
<li class="tsd-description">
|
|
336
|
+
<div class="tsd-comment tsd-typography"><p>Deletes the specified public key from the secure store.</p>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="tsd-parameters">
|
|
339
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
340
|
+
<ul class="tsd-parameter-list">
|
|
341
|
+
<li>
|
|
342
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
343
|
+
<div class="tsd-comment tsd-typography"><p>The name of the public key to be removed.</p>
|
|
344
|
+
</div></li></ul></div>
|
|
345
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
346
|
+
<ul>
|
|
347
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:137</li></ul></aside></li></ul></section>
|
|
348
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="deleteSymmetricKey" class="tsd-anchor"></a>
|
|
349
|
+
<h3 class="tsd-anchor-link"><span>delete<wbr/>Symmetric<wbr/>Key</span><a href="#deleteSymmetricKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
350
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
351
|
+
<li class="tsd-signature tsd-anchor-link" id="deleteSymmetricKey.deleteSymmetricKey-1">delete<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deleteSymmetricKey.deleteSymmetricKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
352
|
+
<li class="tsd-description">
|
|
353
|
+
<div class="tsd-comment tsd-typography"><p>Deletes a symmetric key from the secure store.</p>
|
|
354
|
+
</div>
|
|
355
|
+
<div class="tsd-parameters">
|
|
356
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
357
|
+
<ul class="tsd-parameter-list">
|
|
358
|
+
<li>
|
|
359
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
360
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key.</p>
|
|
361
|
+
</div></li></ul></div>
|
|
362
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
363
|
+
<ul>
|
|
364
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:87</li></ul></aside></li></ul></section>
|
|
365
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="doesPrivateKeyExist" class="tsd-anchor"></a>
|
|
366
|
+
<h3 class="tsd-anchor-link"><span>does<wbr/>Private<wbr/>Key<wbr/>Exist</span><a href="#doesPrivateKeyExist" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
367
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
368
|
+
<li class="tsd-signature tsd-anchor-link" id="doesPrivateKeyExist.doesPrivateKeyExist-1">does<wbr/>Private<wbr/>Key<wbr/>Exist<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#doesPrivateKeyExist.doesPrivateKeyExist-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
369
|
+
<li class="tsd-description">
|
|
370
|
+
<div class="tsd-comment tsd-typography"><p>Checks to see if the specified private key exists.</p>
|
|
371
|
+
</div>
|
|
372
|
+
<div class="tsd-parameters">
|
|
373
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
374
|
+
<ul class="tsd-parameter-list">
|
|
375
|
+
<li>
|
|
376
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
377
|
+
<div class="tsd-comment tsd-typography"><p>The name of the private key.</p>
|
|
378
|
+
</div></li></ul></div>
|
|
379
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
380
|
+
<ul>
|
|
381
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:111</li></ul></aside></li></ul></section>
|
|
382
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="doesPrivateKeyExists" class="tsd-anchor"></a>
|
|
383
|
+
<h3 class="tsd-anchor-link"><span>does<wbr/>Private<wbr/>Key<wbr/>Exists</span><a href="#doesPrivateKeyExists" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
384
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
385
|
+
<li class="tsd-signature tsd-anchor-link" id="doesPrivateKeyExists.doesPrivateKeyExists-1">does<wbr/>Private<wbr/>Key<wbr/>Exists<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#doesPrivateKeyExists.doesPrivateKeyExists-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
386
|
+
<li class="tsd-description">
|
|
387
|
+
<div class="tsd-comment tsd-typography"><p>Checks to see if the specified private key exists.</p>
|
|
388
|
+
|
|
389
|
+
<h3>Deprecated</h3><p>Use doesPrivateKeyExist</p>
|
|
390
|
+
</div>
|
|
391
|
+
<div class="tsd-parameters">
|
|
392
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
393
|
+
<ul class="tsd-parameter-list">
|
|
394
|
+
<li>
|
|
395
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
396
|
+
<div class="tsd-comment tsd-typography"><p>The name of the private key.</p>
|
|
397
|
+
</div></li></ul></div>
|
|
398
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
399
|
+
<ul>
|
|
400
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:120</li></ul></aside></li></ul></section>
|
|
401
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="doesSymmetricKeyExist" class="tsd-anchor"></a>
|
|
402
|
+
<h3 class="tsd-anchor-link"><span>does<wbr/>Symmetric<wbr/>Key<wbr/>Exist</span><a href="#doesSymmetricKeyExist" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
403
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
404
|
+
<li class="tsd-signature tsd-anchor-link" id="doesSymmetricKeyExist.doesSymmetricKeyExist-1">does<wbr/>Symmetric<wbr/>Key<wbr/>Exist<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#doesSymmetricKeyExist.doesSymmetricKeyExist-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
405
|
+
<li class="tsd-description">
|
|
406
|
+
<div class="tsd-comment tsd-typography"><p>Checks to see if the specified symmetric key exists.</p>
|
|
407
|
+
</div>
|
|
408
|
+
<div class="tsd-parameters">
|
|
409
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
410
|
+
<ul class="tsd-parameter-list">
|
|
411
|
+
<li>
|
|
412
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
413
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key.</p>
|
|
414
|
+
</div></li></ul></div>
|
|
415
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
416
|
+
<ul>
|
|
417
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:71</li></ul></aside></li></ul></section>
|
|
418
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="doesSymmetricKeyExists" class="tsd-anchor"></a>
|
|
419
|
+
<h3 class="tsd-anchor-link"><span>does<wbr/>Symmetric<wbr/>Key<wbr/>Exists</span><a href="#doesSymmetricKeyExists" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
420
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
421
|
+
<li class="tsd-signature tsd-anchor-link" id="doesSymmetricKeyExists.doesSymmetricKeyExists-1">does<wbr/>Symmetric<wbr/>Key<wbr/>Exists<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#doesSymmetricKeyExists.doesSymmetricKeyExists-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
422
|
+
<li class="tsd-description">
|
|
423
|
+
<div class="tsd-comment tsd-typography"><p>Checks to see if the specified symmetric key exists.</p>
|
|
424
|
+
|
|
425
|
+
<h3>Deprecated</h3><p>Use doesSymmetricKeyExist</p>
|
|
426
|
+
</div>
|
|
427
|
+
<div class="tsd-parameters">
|
|
428
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
429
|
+
<ul class="tsd-parameter-list">
|
|
430
|
+
<li>
|
|
431
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
432
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key.</p>
|
|
433
|
+
</div></li></ul></div>
|
|
434
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
435
|
+
<ul>
|
|
436
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:80</li></ul></aside></li></ul></section>
|
|
437
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="encryptWithPublicKey" class="tsd-anchor"></a>
|
|
438
|
+
<h3 class="tsd-anchor-link"><span>encrypt<wbr/>With<wbr/>Public<wbr/>Key</span><a href="#encryptWithPublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
439
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
440
|
+
<li class="tsd-signature tsd-anchor-link" id="encryptWithPublicKey.encryptWithPublicKey-1">encrypt<wbr/>With<wbr/>Public<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><a href="AsymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">AsymmetricEncryptionOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#encryptWithPublicKey.encryptWithPublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
441
|
+
<li class="tsd-description">
|
|
442
|
+
<div class="tsd-comment tsd-typography"><p>Encrypts the given data with the specified public key.</p>
|
|
443
|
+
|
|
444
|
+
<h3>Returns</h3><p>Encrypted data</p>
|
|
445
|
+
|
|
446
|
+
<h3>Throws</h3><p><a href="../classes/UnrecognizedAlgorithmError.html">UnrecognizedAlgorithmError</a></p>
|
|
447
|
+
</div>
|
|
448
|
+
<div class="tsd-parameters">
|
|
449
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
450
|
+
<ul class="tsd-parameter-list">
|
|
451
|
+
<li>
|
|
452
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
453
|
+
<div class="tsd-comment tsd-typography"><p>The name of the public key to use for encryption.</p>
|
|
454
|
+
</div></li>
|
|
455
|
+
<li>
|
|
456
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
457
|
+
<div class="tsd-comment tsd-typography"><p>The data to encrypt.</p>
|
|
458
|
+
</div></li>
|
|
459
|
+
<li>
|
|
460
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="AsymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">AsymmetricEncryptionOptions</a></h5></li></ul></div>
|
|
461
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
462
|
+
<ul>
|
|
463
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:326</li></ul></aside></li></ul></section>
|
|
464
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="encryptWithSymmetricKey" class="tsd-anchor"></a>
|
|
465
|
+
<h3 class="tsd-anchor-link"><span>encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key</span><a href="#encryptWithSymmetricKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
466
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
467
|
+
<li class="tsd-signature tsd-anchor-link" id="encryptWithSymmetricKey.encryptWithSymmetricKey-1">encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, iv<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#encryptWithSymmetricKey.encryptWithSymmetricKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
468
|
+
<li class="tsd-description">
|
|
469
|
+
<div class="tsd-comment tsd-typography">
|
|
470
|
+
<h3>Deprecated</h3><p>Use version with <code>options</code> param.</p>
|
|
92
471
|
<p>Encrypts the given data with the specified key</p>
|
|
93
|
-
|
|
94
|
-
<p>
|
|
95
|
-
</div
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
</div></li
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
<p>
|
|
108
|
-
</div></
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
<
|
|
112
|
-
</
|
|
113
|
-
|
|
472
|
+
|
|
473
|
+
<h3>Returns</h3><p>Encrypted data and IV</p>
|
|
474
|
+
</div>
|
|
475
|
+
<div class="tsd-parameters">
|
|
476
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
477
|
+
<ul class="tsd-parameter-list">
|
|
478
|
+
<li>
|
|
479
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5></li>
|
|
480
|
+
<li>
|
|
481
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
482
|
+
<div class="tsd-comment tsd-typography"><p>Data to encrypt.</p>
|
|
483
|
+
</div></li>
|
|
484
|
+
<li>
|
|
485
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> iv: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
486
|
+
<div class="tsd-comment tsd-typography"><p>Optional Initialization Vector.</p>
|
|
487
|
+
</div></li></ul></div>
|
|
488
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
489
|
+
<ul>
|
|
490
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:196</li></ul></aside></li>
|
|
491
|
+
<li class="tsd-signature tsd-anchor-link" id="encryptWithSymmetricKey.encryptWithSymmetricKey-2">encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#encryptWithSymmetricKey.encryptWithSymmetricKey-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
492
|
+
<li class="tsd-description">
|
|
493
|
+
<div class="tsd-comment tsd-typography"><p>Encrypts the given data with the specified key</p>
|
|
494
|
+
|
|
495
|
+
<h3>Returns</h3><p>Encrypted data and IV</p>
|
|
496
|
+
|
|
497
|
+
<h3>Throws</h3><p><a href="../classes/UnrecognizedAlgorithmError.html">UnrecognizedAlgorithmError</a></p>
|
|
498
|
+
</div>
|
|
499
|
+
<div class="tsd-parameters">
|
|
500
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
501
|
+
<ul class="tsd-parameter-list">
|
|
502
|
+
<li>
|
|
503
|
+
<h5>key: <span class="tsd-signature-type">ArrayBuffer</span></h5></li>
|
|
504
|
+
<li>
|
|
505
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
506
|
+
<div class="tsd-comment tsd-typography"><p>Data to encrypt.</p>
|
|
507
|
+
</div></li>
|
|
508
|
+
<li>
|
|
509
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a></h5></li></ul></div>
|
|
510
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
511
|
+
<ul>
|
|
512
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:212</li></ul></aside></li></ul></section>
|
|
513
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="encryptWithSymmetricKeyName" class="tsd-anchor"></a>
|
|
514
|
+
<h3 class="tsd-anchor-link"><span>encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name</span><a href="#encryptWithSymmetricKeyName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
515
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
516
|
+
<li class="tsd-signature tsd-anchor-link" id="encryptWithSymmetricKeyName.encryptWithSymmetricKeyName-1">encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, iv<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#encryptWithSymmetricKeyName.encryptWithSymmetricKeyName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
517
|
+
<li class="tsd-description">
|
|
518
|
+
<div class="tsd-comment tsd-typography">
|
|
519
|
+
<h3>Deprecated</h3><p>Use version with <code>options</code> param.</p>
|
|
114
520
|
<p>Decrypt the given data with the specified symmetric key stored in the secure store.</p>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
521
|
+
|
|
522
|
+
<h3>Returns</h3><p>Decrypted data</p>
|
|
523
|
+
</div>
|
|
524
|
+
<div class="tsd-parameters">
|
|
525
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
526
|
+
<ul class="tsd-parameter-list">
|
|
527
|
+
<li>
|
|
528
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
529
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key to use to decrypt.</p>
|
|
530
|
+
</div></li>
|
|
531
|
+
<li>
|
|
532
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
533
|
+
<div class="tsd-comment tsd-typography"><p>The data to decrypt.</p>
|
|
534
|
+
</div></li>
|
|
535
|
+
<li>
|
|
536
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> iv: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
537
|
+
<div class="tsd-comment tsd-typography"><p>Optional Initialization Vector.</p>
|
|
538
|
+
</div></li></ul></div>
|
|
539
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
540
|
+
<ul>
|
|
541
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:262</li></ul></aside></li>
|
|
542
|
+
<li class="tsd-signature tsd-anchor-link" id="encryptWithSymmetricKeyName.encryptWithSymmetricKeyName-2">encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#encryptWithSymmetricKeyName.encryptWithSymmetricKeyName-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
543
|
+
<li class="tsd-description">
|
|
544
|
+
<div class="tsd-comment tsd-typography"><p>Decrypt the given data with the specified symmetric key stored in the secure store.</p>
|
|
545
|
+
|
|
546
|
+
<h3>Returns</h3><p>Decrypted data</p>
|
|
547
|
+
|
|
548
|
+
<h3>Throws</h3><p><a href="../classes/UnrecognizedAlgorithmError.html">UnrecognizedAlgorithmError</a></p>
|
|
549
|
+
</div>
|
|
550
|
+
<div class="tsd-parameters">
|
|
551
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
552
|
+
<ul class="tsd-parameter-list">
|
|
553
|
+
<li>
|
|
554
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
555
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key to use to decrypt.</p>
|
|
556
|
+
</div></li>
|
|
557
|
+
<li>
|
|
558
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
559
|
+
<div class="tsd-comment tsd-typography"><p>The data to decrypt.</p>
|
|
560
|
+
</div></li>
|
|
561
|
+
<li>
|
|
562
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="SymmetricEncryptionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SymmetricEncryptionOptions</a></h5></li></ul></div>
|
|
563
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
564
|
+
<ul>
|
|
565
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:278</li></ul></aside></li></ul></section>
|
|
566
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="exportKeys" class="tsd-anchor"></a>
|
|
567
|
+
<h3 class="tsd-anchor-link"><span>export<wbr/>Keys</span><a href="#exportKeys" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
568
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
569
|
+
<li class="tsd-signature tsd-anchor-link" id="exportKeys.exportKeys-1">export<wbr/>Keys<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="KeyData.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyData</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><a href="#exportKeys.exportKeys-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
570
|
+
<li class="tsd-description">
|
|
571
|
+
<div class="tsd-comment tsd-typography"><p>Export all contents of the key manager as an array of KeyArchiveKeyInfo
|
|
123
572
|
ready for archive.</p>
|
|
124
|
-
</div
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
</
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
<
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<p>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
<
|
|
156
|
-
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
</div></li></ul></
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
<p>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
|
|
573
|
+
</div>
|
|
574
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="KeyData.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyData</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
575
|
+
<ul>
|
|
576
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:406</li></ul></aside></li></ul></section>
|
|
577
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="generateHash" class="tsd-anchor"></a>
|
|
578
|
+
<h3 class="tsd-anchor-link"><span>generate<wbr/>Hash</span><a href="#generateHash" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
579
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
580
|
+
<li class="tsd-signature tsd-anchor-link" id="generateHash.generateHash-1">generate<wbr/>Hash<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#generateHash.generateHash-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
581
|
+
<li class="tsd-description">
|
|
582
|
+
<div class="tsd-comment tsd-typography"><p>Creates a SHA256 hash of the specified data.</p>
|
|
583
|
+
</div>
|
|
584
|
+
<div class="tsd-parameters">
|
|
585
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
586
|
+
<ul class="tsd-parameter-list">
|
|
587
|
+
<li>
|
|
588
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
589
|
+
<div class="tsd-comment tsd-typography"><p>Data to hash.</p>
|
|
590
|
+
</div></li></ul></div>
|
|
591
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
592
|
+
<ul>
|
|
593
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:390</li></ul></aside></li></ul></section>
|
|
594
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="generateKeyPair" class="tsd-anchor"></a>
|
|
595
|
+
<h3 class="tsd-anchor-link"><span>generate<wbr/>Key<wbr/>Pair</span><a href="#generateKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
596
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
597
|
+
<li class="tsd-signature tsd-anchor-link" id="generateKeyPair.generateKeyPair-1">generate<wbr/>Key<wbr/>Pair<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#generateKeyPair.generateKeyPair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
598
|
+
<li class="tsd-description">
|
|
599
|
+
<div class="tsd-comment tsd-typography"><p>Generates and securely stores a key pair for public key cryptography.</p>
|
|
600
|
+
<p>The public key is exported as <code>SubjectPublicKeyInfo (spki) The private key is exported as </code>pkcs8`</p>
|
|
601
|
+
</div>
|
|
602
|
+
<div class="tsd-parameters">
|
|
603
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
604
|
+
<ul class="tsd-parameter-list">
|
|
605
|
+
<li>
|
|
606
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
607
|
+
<div class="tsd-comment tsd-typography"><p>The name of the key pair to be generated.</p>
|
|
608
|
+
</div></li></ul></div>
|
|
609
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
610
|
+
<ul>
|
|
611
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:400</li></ul></aside></li></ul></section>
|
|
612
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="generateRandomData" class="tsd-anchor"></a>
|
|
613
|
+
<h3 class="tsd-anchor-link"><span>generate<wbr/>Random<wbr/>Data</span><a href="#generateRandomData" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
614
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
615
|
+
<li class="tsd-signature tsd-anchor-link" id="generateRandomData.generateRandomData-1">generate<wbr/>Random<wbr/>Data<span class="tsd-signature-symbol">(</span>size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#generateRandomData.generateRandomData-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
616
|
+
<li class="tsd-description">
|
|
617
|
+
<div class="tsd-comment tsd-typography"><p>Generate random bytes using a secure random number generator.</p>
|
|
618
|
+
|
|
619
|
+
<h3>Returns</h3><p>ArrayBuffer containing the random bytes.</p>
|
|
620
|
+
</div>
|
|
621
|
+
<div class="tsd-parameters">
|
|
622
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
623
|
+
<ul class="tsd-parameter-list">
|
|
624
|
+
<li>
|
|
625
|
+
<h5>size: <span class="tsd-signature-type">number</span></h5>
|
|
626
|
+
<div class="tsd-comment tsd-typography"><p>Number of random bytes to generate</p>
|
|
627
|
+
</div></li></ul></div>
|
|
628
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
629
|
+
<ul>
|
|
630
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:383</li></ul></aside></li></ul></section>
|
|
631
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="generateSignatureWithPrivateKey" class="tsd-anchor"></a>
|
|
632
|
+
<h3 class="tsd-anchor-link"><span>generate<wbr/>Signature<wbr/>With<wbr/>Private<wbr/>Key</span><a href="#generateSignatureWithPrivateKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
633
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
634
|
+
<li class="tsd-signature tsd-anchor-link" id="generateSignatureWithPrivateKey.generateSignatureWithPrivateKey-1">generate<wbr/>Signature<wbr/>With<wbr/>Private<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#generateSignatureWithPrivateKey.generateSignatureWithPrivateKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
635
|
+
<li class="tsd-description">
|
|
636
|
+
<div class="tsd-comment tsd-typography"><p>Generates a signature for the given data with the specified private key.</p>
|
|
637
|
+
|
|
638
|
+
<h3>Returns</h3><p>Data signature or undefined if the private key is not found.</p>
|
|
639
|
+
</div>
|
|
640
|
+
<div class="tsd-parameters">
|
|
641
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
642
|
+
<ul class="tsd-parameter-list">
|
|
643
|
+
<li>
|
|
644
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
645
|
+
<div class="tsd-comment tsd-typography"><p>The name of the private key to use for generation.</p>
|
|
646
|
+
</div></li>
|
|
647
|
+
<li>
|
|
648
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
649
|
+
<div class="tsd-comment tsd-typography"><p>The data to sign.</p>
|
|
650
|
+
</div></li></ul></div>
|
|
651
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
652
|
+
<ul>
|
|
653
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:165</li></ul></aside></li></ul></section>
|
|
654
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="generateSymmetricKey" class="tsd-anchor"></a>
|
|
655
|
+
<h3 class="tsd-anchor-link"><span>generate<wbr/>Symmetric<wbr/>Key</span><a href="#generateSymmetricKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
656
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
657
|
+
<li class="tsd-signature tsd-anchor-link" id="generateSymmetricKey.generateSymmetricKey-1">generate<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#generateSymmetricKey.generateSymmetricKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
658
|
+
<li class="tsd-description">
|
|
659
|
+
<div class="tsd-comment tsd-typography"><p>Generates and securely stores a symmetric key.</p>
|
|
660
|
+
</div>
|
|
661
|
+
<div class="tsd-parameters">
|
|
662
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
663
|
+
<ul class="tsd-parameter-list">
|
|
664
|
+
<li>
|
|
665
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
666
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key.</p>
|
|
667
|
+
</div></li></ul></div>
|
|
668
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
669
|
+
<ul>
|
|
670
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:358</li></ul></aside></li></ul></section>
|
|
671
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="generateSymmetricKeyFromPassword" class="tsd-anchor"></a>
|
|
672
|
+
<h3 class="tsd-anchor-link"><span>generate<wbr/>Symmetric<wbr/>Key<wbr/>From<wbr/>Password</span><a href="#generateSymmetricKeyFromPassword" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
673
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
674
|
+
<li class="tsd-signature tsd-anchor-link" id="generateSymmetricKeyFromPassword.generateSymmetricKeyFromPassword-1">generate<wbr/>Symmetric<wbr/>Key<wbr/>From<wbr/>Password<span class="tsd-signature-symbol">(</span>password<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, salt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>rounds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#generateSymmetricKeyFromPassword.generateSymmetricKeyFromPassword-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
675
|
+
<li class="tsd-description">
|
|
676
|
+
<div class="tsd-comment tsd-typography"><p>Generates a symmetric key, derived from a password using PBKDF2.</p>
|
|
677
|
+
|
|
678
|
+
<h3>Returns</h3><p>The generated symmetric key.</p>
|
|
679
|
+
</div>
|
|
680
|
+
<div class="tsd-parameters">
|
|
681
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
682
|
+
<ul class="tsd-parameter-list">
|
|
683
|
+
<li>
|
|
684
|
+
<h5>password: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
685
|
+
<div class="tsd-comment tsd-typography"><p>The password from which to generate the symmetric key</p>
|
|
686
|
+
</div></li>
|
|
687
|
+
<li>
|
|
688
|
+
<h5>salt: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
689
|
+
<div class="tsd-comment tsd-typography"><p>Salt to use in generation of the key</p>
|
|
690
|
+
</div></li>
|
|
691
|
+
<li>
|
|
692
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="tsd-signature-symbol">{ </span>rounds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></h5>
|
|
693
|
+
<ul class="tsd-parameters">
|
|
694
|
+
<li class="tsd-parameter">
|
|
695
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> rounds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li></ul></li></ul></div>
|
|
696
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
697
|
+
<ul>
|
|
698
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:370</li></ul></aside></li></ul></section>
|
|
699
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getPassword" class="tsd-anchor"></a>
|
|
700
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Password</span><a href="#getPassword" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
701
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
702
|
+
<li class="tsd-signature tsd-anchor-link" id="getPassword.getPassword-1">get<wbr/>Password<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#getPassword.getPassword-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
703
|
+
<li class="tsd-description">
|
|
704
|
+
<div class="tsd-comment tsd-typography"><p>Retrieves a password from the secure store.</p>
|
|
705
|
+
|
|
706
|
+
<h3>Returns</h3><p>The password or undefined if the password was not found.</p>
|
|
707
|
+
</div>
|
|
708
|
+
<div class="tsd-parameters">
|
|
709
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
710
|
+
<ul class="tsd-parameter-list">
|
|
711
|
+
<li>
|
|
712
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
713
|
+
<div class="tsd-comment tsd-typography"><p>The name of the password to retrieve</p>
|
|
714
|
+
</div></li></ul></div>
|
|
715
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
716
|
+
<ul>
|
|
717
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:32</li></ul></aside></li></ul></section>
|
|
718
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getPrivateKey" class="tsd-anchor"></a>
|
|
719
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Private<wbr/>Key</span><a href="#getPrivateKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
720
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
721
|
+
<li class="tsd-signature tsd-anchor-link" id="getPrivateKey.getPrivateKey-1">get<wbr/>Private<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#getPrivateKey.getPrivateKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
722
|
+
<li class="tsd-description">
|
|
723
|
+
<div class="tsd-comment tsd-typography"><p>Retrieves a private key from the secure store.</p>
|
|
724
|
+
|
|
725
|
+
<h3>Returns</h3><p>Requested private key or undefined if the key was not found.</p>
|
|
726
|
+
</div>
|
|
727
|
+
<div class="tsd-parameters">
|
|
728
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
729
|
+
<ul class="tsd-parameter-list">
|
|
730
|
+
<li>
|
|
731
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
732
|
+
<div class="tsd-comment tsd-typography"><p>The name of the private key to be retrieved.</p>
|
|
733
|
+
</div></li></ul></div>
|
|
734
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
735
|
+
<ul>
|
|
736
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:104</li></ul></aside></li></ul></section>
|
|
737
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getPublicKey" class="tsd-anchor"></a>
|
|
738
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Public<wbr/>Key</span><a href="#getPublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
739
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
740
|
+
<li class="tsd-signature tsd-anchor-link" id="getPublicKey.getPublicKey-1">get<wbr/>Public<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="PublicKey.html" class="tsd-signature-type" data-tsd-kind="Interface">PublicKey</a><span class="tsd-signature-symbol">></span><a href="#getPublicKey.getPublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
741
|
+
<li class="tsd-description">
|
|
742
|
+
<div class="tsd-comment tsd-typography"><p>Retrieves the public key from the secure store.</p>
|
|
743
|
+
<p>The format of the public key is SubjectPublicKeyInfo (spki)</p>
|
|
744
|
+
|
|
745
|
+
<h3>Returns</h3><p>The public key or undefined if the key was not found.</p>
|
|
746
|
+
</div>
|
|
747
|
+
<div class="tsd-parameters">
|
|
748
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
749
|
+
<ul class="tsd-parameter-list">
|
|
750
|
+
<li>
|
|
751
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
752
|
+
<div class="tsd-comment tsd-typography"><p>The name of the public key.</p>
|
|
753
|
+
</div></li></ul></div>
|
|
754
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="PublicKey.html" class="tsd-signature-type" data-tsd-kind="Interface">PublicKey</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
755
|
+
<ul>
|
|
756
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:148</li></ul></aside></li></ul></section>
|
|
757
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getSymmetricKey" class="tsd-anchor"></a>
|
|
758
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Symmetric<wbr/>Key</span><a href="#getSymmetricKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
759
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
760
|
+
<li class="tsd-signature tsd-anchor-link" id="getSymmetricKey.getSymmetricKey-1">get<wbr/>Symmetric<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span><a href="#getSymmetricKey.getSymmetricKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
761
|
+
<li class="tsd-description">
|
|
762
|
+
<div class="tsd-comment tsd-typography"><p>Retrieves a symmetric key from the secure store.</p>
|
|
763
|
+
|
|
764
|
+
<h3>Returns</h3><p>The symmetric key or undefined if not found.</p>
|
|
765
|
+
</div>
|
|
766
|
+
<div class="tsd-parameters">
|
|
767
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
768
|
+
<ul class="tsd-parameter-list">
|
|
769
|
+
<li>
|
|
770
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
771
|
+
<div class="tsd-comment tsd-typography"><p>The name of the symmetric key.</p>
|
|
772
|
+
</div></li></ul></div>
|
|
773
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
774
|
+
<ul>
|
|
775
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:64</li></ul></aside></li></ul></section>
|
|
776
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="removeAllKeys" class="tsd-anchor"></a>
|
|
777
|
+
<h3 class="tsd-anchor-link"><span>remove<wbr/>All<wbr/>Keys</span><a href="#removeAllKeys" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
778
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
779
|
+
<li class="tsd-signature tsd-anchor-link" id="removeAllKeys.removeAllKeys-1">remove<wbr/>All<wbr/>Keys<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#removeAllKeys.removeAllKeys-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
780
|
+
<li class="tsd-description">
|
|
781
|
+
<div class="tsd-comment tsd-typography"><p>Remove all keys associated with this <code>SudoKeyManager</code></p>
|
|
782
|
+
</div>
|
|
783
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
784
|
+
<ul>
|
|
785
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:351</li></ul></aside></li></ul></section>
|
|
786
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="updatePassword" class="tsd-anchor"></a>
|
|
787
|
+
<h3 class="tsd-anchor-link"><span>update<wbr/>Password</span><a href="#updatePassword" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
788
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
789
|
+
<li class="tsd-signature tsd-anchor-link" id="updatePassword.updatePassword-1">update<wbr/>Password<span class="tsd-signature-symbol">(</span>password<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#updatePassword.updatePassword-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
790
|
+
<li class="tsd-description">
|
|
791
|
+
<div class="tsd-comment tsd-typography"><p>Updates a password stored in the secure store.</p>
|
|
792
|
+
</div>
|
|
793
|
+
<div class="tsd-parameters">
|
|
794
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
795
|
+
<ul class="tsd-parameter-list">
|
|
796
|
+
<li>
|
|
797
|
+
<h5>password: <span class="tsd-signature-type">ArrayBuffer</span></h5></li>
|
|
798
|
+
<li>
|
|
799
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
800
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
801
|
+
<ul>
|
|
802
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:47</li></ul></aside></li></ul></section>
|
|
803
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="verifySignatureWithPublicKey" class="tsd-anchor"></a>
|
|
804
|
+
<h3 class="tsd-anchor-link"><span>verify<wbr/>Signature<wbr/>With<wbr/>Public<wbr/>Key</span><a href="#verifySignatureWithPublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
805
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
806
|
+
<li class="tsd-signature tsd-anchor-link" id="verifySignatureWithPublicKey.verifySignatureWithPublicKey-1">verify<wbr/>Signature<wbr/>With<wbr/>Public<wbr/>Key<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span>, signature<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#verifySignatureWithPublicKey.verifySignatureWithPublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
807
|
+
<li class="tsd-description">
|
|
808
|
+
<div class="tsd-comment tsd-typography"><p>Verifies the given data against the provided signature using the specified public key.</p>
|
|
809
|
+
|
|
810
|
+
<h3>Returns</h3><p>True if the data and signature could be successfully verified</p>
|
|
811
|
+
</div>
|
|
812
|
+
<div class="tsd-parameters">
|
|
813
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
814
|
+
<ul class="tsd-parameter-list">
|
|
815
|
+
<li>
|
|
816
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
817
|
+
<div class="tsd-comment tsd-typography"><p>The name of the public key to use for validation.</p>
|
|
818
|
+
</div></li>
|
|
819
|
+
<li>
|
|
820
|
+
<h5>data: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
821
|
+
<div class="tsd-comment tsd-typography"><p>The data to verify</p>
|
|
822
|
+
</div></li>
|
|
823
|
+
<li>
|
|
824
|
+
<h5>signature: <span class="tsd-signature-type">ArrayBuffer</span></h5>
|
|
825
|
+
<div class="tsd-comment tsd-typography"><p>The signature to verify against</p>
|
|
826
|
+
</div></li></ul></div>
|
|
827
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
828
|
+
<ul>
|
|
829
|
+
<li>Defined in src/sudoKeyManager/sudoKeyManager.ts:179</li></ul></aside></li></ul></section></section></div>
|
|
830
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
831
|
+
<div class="tsd-navigation settings">
|
|
832
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
833
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
834
|
+
<div class="tsd-accordion-details">
|
|
835
|
+
<div class="tsd-filter-visibility">
|
|
836
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
837
|
+
<ul id="tsd-filter-options">
|
|
838
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
839
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
840
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
|
|
841
|
+
<div class="tsd-theme-toggle">
|
|
842
|
+
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
843
|
+
<nav class="tsd-navigation primary">
|
|
844
|
+
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
845
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
846
|
+
<div class="tsd-accordion-details">
|
|
847
|
+
<ul>
|
|
848
|
+
<li><a href="../modules.html">@sudoplatform/sudo-<wbr/>common</a>
|
|
849
|
+
<ul></ul></li></ul></div></details></nav>
|
|
850
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
851
|
+
<ul>
|
|
852
|
+
<li class="current tsd-kind-interface"><a href="SudoKeyManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg><span>Sudo<wbr/>Key<wbr/>Manager</span></a>
|
|
853
|
+
<ul>
|
|
854
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="SudoKeyManager.html#namespace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>namespace</a></li>
|
|
855
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="SudoKeyManager.html#serviceName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>service<wbr/>Name</a></li>
|
|
856
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#addPassword" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>add<wbr/>Password</a></li>
|
|
857
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#addPrivateKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>add<wbr/>Private<wbr/>Key</a></li>
|
|
858
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#addPublicKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>add<wbr/>Public<wbr/>Key</a></li>
|
|
859
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#addSymmetricKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>add<wbr/>Symmetric<wbr/>Key</a></li>
|
|
860
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#decryptWithPrivateKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>decrypt<wbr/>With<wbr/>Private<wbr/>Key</a></li>
|
|
861
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#decryptWithSymmetricKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key</a></li>
|
|
862
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#decryptWithSymmetricKeyName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>decrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name</a></li>
|
|
863
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#deleteKeyPair" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>delete<wbr/>Key<wbr/>Pair</a></li>
|
|
864
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#deletePassword" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>delete<wbr/>Password</a></li>
|
|
865
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#deletePublicKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>delete<wbr/>Public<wbr/>Key</a></li>
|
|
866
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#deleteSymmetricKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>delete<wbr/>Symmetric<wbr/>Key</a></li>
|
|
867
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#doesPrivateKeyExist" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>does<wbr/>Private<wbr/>Key<wbr/>Exist</a></li>
|
|
868
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#doesPrivateKeyExists" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>does<wbr/>Private<wbr/>Key<wbr/>Exists</a></li>
|
|
869
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#doesSymmetricKeyExist" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>does<wbr/>Symmetric<wbr/>Key<wbr/>Exist</a></li>
|
|
870
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#doesSymmetricKeyExists" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>does<wbr/>Symmetric<wbr/>Key<wbr/>Exists</a></li>
|
|
871
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#encryptWithPublicKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>encrypt<wbr/>With<wbr/>Public<wbr/>Key</a></li>
|
|
872
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#encryptWithSymmetricKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key</a></li>
|
|
873
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#encryptWithSymmetricKeyName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>encrypt<wbr/>With<wbr/>Symmetric<wbr/>Key<wbr/>Name</a></li>
|
|
874
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#exportKeys" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>export<wbr/>Keys</a></li>
|
|
875
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#generateHash" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>generate<wbr/>Hash</a></li>
|
|
876
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#generateKeyPair" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>generate<wbr/>Key<wbr/>Pair</a></li>
|
|
877
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#generateRandomData" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>generate<wbr/>Random<wbr/>Data</a></li>
|
|
878
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#generateSignatureWithPrivateKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>generate<wbr/>Signature<wbr/>With<wbr/>Private<wbr/>Key</a></li>
|
|
879
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#generateSymmetricKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>generate<wbr/>Symmetric<wbr/>Key</a></li>
|
|
880
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#generateSymmetricKeyFromPassword" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>generate<wbr/>Symmetric<wbr/>Key<wbr/>From<wbr/>Password</a></li>
|
|
881
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#getPassword" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Password</a></li>
|
|
882
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#getPrivateKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Private<wbr/>Key</a></li>
|
|
883
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#getPublicKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Public<wbr/>Key</a></li>
|
|
884
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#getSymmetricKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Symmetric<wbr/>Key</a></li>
|
|
885
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#removeAllKeys" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>remove<wbr/>All<wbr/>Keys</a></li>
|
|
886
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#updatePassword" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>update<wbr/>Password</a></li>
|
|
887
|
+
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="SudoKeyManager.html#verifySignatureWithPublicKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>verify<wbr/>Signature<wbr/>With<wbr/>Public<wbr/>Key</a></li></ul></li></ul></nav></div></div>
|
|
888
|
+
<div class="container tsd-generator">
|
|
889
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
890
|
+
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|