@chilkat/react-native 11.6.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/CHANGELOG.md +6 -0
- package/ChilkatRN.podspec +44 -0
- package/LICENSE +254 -0
- package/README.md +67 -0
- package/android/CMakeLists.txt +60 -0
- package/android/build.gradle +148 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +12 -0
- package/android/src/main/java/com/margelo/nitro/chilkat/ChilkatRNPackage.java +33 -0
- package/chilkat-checksums.json +9 -0
- package/cpp/HybridAi.cpp +660 -0
- package/cpp/HybridAi.hpp +159 -0
- package/cpp/HybridAsn.cpp +403 -0
- package/cpp/HybridAsn.hpp +105 -0
- package/cpp/HybridAuthAws.cpp +188 -0
- package/cpp/HybridAuthAws.hpp +55 -0
- package/cpp/HybridAuthAzureSAS.cpp +142 -0
- package/cpp/HybridAuthAzureSAS.hpp +47 -0
- package/cpp/HybridAuthAzureStorage.cpp +144 -0
- package/cpp/HybridAuthAzureStorage.hpp +47 -0
- package/cpp/HybridAuthGoogle.cpp +215 -0
- package/cpp/HybridAuthGoogle.hpp +67 -0
- package/cpp/HybridBinData.cpp +439 -0
- package/cpp/HybridBinData.hpp +112 -0
- package/cpp/HybridBz2.cpp +177 -0
- package/cpp/HybridBz2.hpp +58 -0
- package/cpp/HybridCache.cpp +314 -0
- package/cpp/HybridCache.hpp +82 -0
- package/cpp/HybridCert.cpp +840 -0
- package/cpp/HybridCert.hpp +196 -0
- package/cpp/HybridCertChain.cpp +149 -0
- package/cpp/HybridCertChain.hpp +50 -0
- package/cpp/HybridCertStore.cpp +276 -0
- package/cpp/HybridCertStore.hpp +78 -0
- package/cpp/HybridCharset.cpp +333 -0
- package/cpp/HybridCharset.hpp +83 -0
- package/cpp/HybridCkDateTime.cpp +384 -0
- package/cpp/HybridCkDateTime.hpp +105 -0
- package/cpp/HybridCodeSign.cpp +156 -0
- package/cpp/HybridCodeSign.hpp +55 -0
- package/cpp/HybridCompression.cpp +422 -0
- package/cpp/HybridCompression.hpp +100 -0
- package/cpp/HybridCrypt2.cpp +1517 -0
- package/cpp/HybridCrypt2.hpp +320 -0
- package/cpp/HybridCsr.cpp +292 -0
- package/cpp/HybridCsr.hpp +77 -0
- package/cpp/HybridCsv.cpp +382 -0
- package/cpp/HybridCsv.hpp +101 -0
- package/cpp/HybridDh.cpp +137 -0
- package/cpp/HybridDh.hpp +47 -0
- package/cpp/HybridDirTree.cpp +167 -0
- package/cpp/HybridDirTree.hpp +53 -0
- package/cpp/HybridDkim.cpp +249 -0
- package/cpp/HybridDkim.hpp +74 -0
- package/cpp/HybridDns.cpp +193 -0
- package/cpp/HybridDns.hpp +64 -0
- package/cpp/HybridDsa.cpp +453 -0
- package/cpp/HybridDsa.hpp +112 -0
- package/cpp/HybridDtObj.cpp +172 -0
- package/cpp/HybridDtObj.hpp +57 -0
- package/cpp/HybridEcc.cpp +195 -0
- package/cpp/HybridEcc.hpp +55 -0
- package/cpp/HybridEdDSA.cpp +147 -0
- package/cpp/HybridEdDSA.hpp +47 -0
- package/cpp/HybridEmail.cpp +1911 -0
- package/cpp/HybridEmail.hpp +419 -0
- package/cpp/HybridEmailBundle.cpp +204 -0
- package/cpp/HybridEmailBundle.hpp +64 -0
- package/cpp/HybridFileAccess.cpp +631 -0
- package/cpp/HybridFileAccess.hpp +149 -0
- package/cpp/HybridFtp2.cpp +2308 -0
- package/cpp/HybridFtp2.hpp +462 -0
- package/cpp/HybridGlobal.cpp +221 -0
- package/cpp/HybridGlobal.hpp +68 -0
- package/cpp/HybridGzip.cpp +440 -0
- package/cpp/HybridGzip.hpp +105 -0
- package/cpp/HybridHashtable.cpp +211 -0
- package/cpp/HybridHashtable.hpp +64 -0
- package/cpp/HybridHtmlToText.cpp +136 -0
- package/cpp/HybridHtmlToText.hpp +47 -0
- package/cpp/HybridHtmlToXml.cpp +218 -0
- package/cpp/HybridHtmlToXml.hpp +65 -0
- package/cpp/HybridHttp.cpp +2067 -0
- package/cpp/HybridHttp.hpp +416 -0
- package/cpp/HybridHttpCurl.cpp +337 -0
- package/cpp/HybridHttpCurl.hpp +93 -0
- package/cpp/HybridHttpRequest.cpp +455 -0
- package/cpp/HybridHttpRequest.hpp +109 -0
- package/cpp/HybridHttpResponse.cpp +340 -0
- package/cpp/HybridHttpResponse.hpp +86 -0
- package/cpp/HybridImap.cpp +1818 -0
- package/cpp/HybridImap.hpp +363 -0
- package/cpp/HybridJavaKeyStore.cpp +387 -0
- package/cpp/HybridJavaKeyStore.hpp +98 -0
- package/cpp/HybridJs.cpp +154 -0
- package/cpp/HybridJs.hpp +54 -0
- package/cpp/HybridJsonArray.cpp +441 -0
- package/cpp/HybridJsonArray.hpp +120 -0
- package/cpp/HybridJsonObject.cpp +1125 -0
- package/cpp/HybridJsonObject.hpp +260 -0
- package/cpp/HybridJwe.cpp +294 -0
- package/cpp/HybridJwe.hpp +82 -0
- package/cpp/HybridJws.cpp +290 -0
- package/cpp/HybridJws.hpp +82 -0
- package/cpp/HybridJwt.cpp +198 -0
- package/cpp/HybridJwt.hpp +57 -0
- package/cpp/HybridLog.cpp +212 -0
- package/cpp/HybridLog.hpp +63 -0
- package/cpp/HybridMailMan.cpp +1853 -0
- package/cpp/HybridMailMan.hpp +386 -0
- package/cpp/HybridMailboxes.cpp +165 -0
- package/cpp/HybridMailboxes.hpp +54 -0
- package/cpp/HybridMcp.cpp +322 -0
- package/cpp/HybridMcp.hpp +85 -0
- package/cpp/HybridMessageSet.cpp +162 -0
- package/cpp/HybridMessageSet.hpp +54 -0
- package/cpp/HybridMht.cpp +700 -0
- package/cpp/HybridMht.hpp +165 -0
- package/cpp/HybridMime.cpp +1119 -0
- package/cpp/HybridMime.hpp +266 -0
- package/cpp/HybridNtlm.cpp +333 -0
- package/cpp/HybridNtlm.hpp +83 -0
- package/cpp/HybridOAuth1.cpp +307 -0
- package/cpp/HybridOAuth1.hpp +78 -0
- package/cpp/HybridOAuth2.cpp +515 -0
- package/cpp/HybridOAuth2.hpp +127 -0
- package/cpp/HybridPdf.cpp +370 -0
- package/cpp/HybridPdf.hpp +103 -0
- package/cpp/HybridPem.cpp +327 -0
- package/cpp/HybridPem.hpp +88 -0
- package/cpp/HybridPfx.cpp +343 -0
- package/cpp/HybridPfx.hpp +87 -0
- package/cpp/HybridPkcs11.cpp +318 -0
- package/cpp/HybridPkcs11.hpp +88 -0
- package/cpp/HybridPrivateKey.cpp +464 -0
- package/cpp/HybridPrivateKey.hpp +117 -0
- package/cpp/HybridPrng.cpp +192 -0
- package/cpp/HybridPrng.hpp +57 -0
- package/cpp/HybridPublicKey.cpp +238 -0
- package/cpp/HybridPublicKey.hpp +68 -0
- package/cpp/HybridRest.cpp +993 -0
- package/cpp/HybridRest.hpp +214 -0
- package/cpp/HybridRsa.cpp +348 -0
- package/cpp/HybridRsa.hpp +90 -0
- package/cpp/HybridSCard.cpp +328 -0
- package/cpp/HybridSCard.hpp +91 -0
- package/cpp/HybridSFtp.cpp +1889 -0
- package/cpp/HybridSFtp.hpp +366 -0
- package/cpp/HybridSFtpDir.cpp +119 -0
- package/cpp/HybridSFtpDir.hpp +43 -0
- package/cpp/HybridSFtpFile.cpp +203 -0
- package/cpp/HybridSFtpFile.hpp +60 -0
- package/cpp/HybridScMinidriver.cpp +341 -0
- package/cpp/HybridScMinidriver.hpp +88 -0
- package/cpp/HybridScp.cpp +398 -0
- package/cpp/HybridScp.hpp +96 -0
- package/cpp/HybridSecrets.cpp +328 -0
- package/cpp/HybridSecrets.hpp +84 -0
- package/cpp/HybridSecureString.cpp +175 -0
- package/cpp/HybridSecureString.hpp +55 -0
- package/cpp/HybridServerSentEvent.cpp +112 -0
- package/cpp/HybridServerSentEvent.hpp +41 -0
- package/cpp/HybridSocket.cpp +1567 -0
- package/cpp/HybridSocket.hpp +336 -0
- package/cpp/HybridSpider.cpp +543 -0
- package/cpp/HybridSpider.hpp +138 -0
- package/cpp/HybridSsh.cpp +1330 -0
- package/cpp/HybridSsh.hpp +282 -0
- package/cpp/HybridSshKey.cpp +310 -0
- package/cpp/HybridSshKey.hpp +83 -0
- package/cpp/HybridSshTunnel.cpp +687 -0
- package/cpp/HybridSshTunnel.hpp +159 -0
- package/cpp/HybridStream.cpp +496 -0
- package/cpp/HybridStream.hpp +123 -0
- package/cpp/HybridStringArray.cpp +368 -0
- package/cpp/HybridStringArray.hpp +99 -0
- package/cpp/HybridStringBuilder.cpp +739 -0
- package/cpp/HybridStringBuilder.hpp +178 -0
- package/cpp/HybridStringTable.cpp +218 -0
- package/cpp/HybridStringTable.hpp +66 -0
- package/cpp/HybridTar.cpp +547 -0
- package/cpp/HybridTar.hpp +134 -0
- package/cpp/HybridTrustedRoots.cpp +178 -0
- package/cpp/HybridTrustedRoots.hpp +61 -0
- package/cpp/HybridUnixCompress.cpp +191 -0
- package/cpp/HybridUnixCompress.hpp +60 -0
- package/cpp/HybridUpload.cpp +427 -0
- package/cpp/HybridUpload.hpp +114 -0
- package/cpp/HybridUrl.cpp +152 -0
- package/cpp/HybridUrl.hpp +48 -0
- package/cpp/HybridWebSocket.cpp +378 -0
- package/cpp/HybridWebSocket.hpp +103 -0
- package/cpp/HybridXml.cpp +1527 -0
- package/cpp/HybridXml.hpp +340 -0
- package/cpp/HybridXmlCertVault.cpp +215 -0
- package/cpp/HybridXmlCertVault.hpp +63 -0
- package/cpp/HybridXmlDSig.cpp +328 -0
- package/cpp/HybridXmlDSig.hpp +88 -0
- package/cpp/HybridXmlDSigGen.cpp +549 -0
- package/cpp/HybridXmlDSigGen.hpp +126 -0
- package/cpp/HybridXmp.cpp +329 -0
- package/cpp/HybridXmp.hpp +86 -0
- package/cpp/HybridZip.cpp +1000 -0
- package/cpp/HybridZip.hpp +226 -0
- package/cpp/HybridZipCrc.cpp +162 -0
- package/cpp/HybridZipCrc.hpp +57 -0
- package/cpp/HybridZipEntry.cpp +395 -0
- package/cpp/HybridZipEntry.hpp +102 -0
- package/cpp/runtime/AsyncCall.hpp +96 -0
- package/cpp/runtime/Bytes.hpp +49 -0
- package/cpp/runtime/ChilkatError.hpp +66 -0
- package/cpp/runtime/ChilkatObject.hpp +219 -0
- package/cpp/runtime/ProgLang.hpp +9 -0
- package/cpp/runtime/ProgressAdapter.hpp +43 -0
- package/nitro.json +113 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.cmake +179 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.cpp +1029 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chilkat/ChilkatRNOnLoad.kt +35 -0
- package/nitrogen/generated/ios/ChilkatRN+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.hpp +27 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Umbrella.hpp +38 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.mm +1015 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.swift +16 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.cpp +114 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.hpp +175 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.cpp +70 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.hpp +81 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.cpp +56 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.hpp +108 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.cpp +47 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.hpp +106 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.hpp +205 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.cpp +55 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.hpp +101 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.hpp +283 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.cpp +72 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.hpp +121 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.hpp +77 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.cpp +51 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.cpp +50 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.hpp +96 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.cpp +259 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.hpp +326 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.cpp +90 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.cpp +367 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.hpp +434 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.hpp +99 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.hpp +125 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.cpp +334 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.hpp +407 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.cpp +275 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.hpp +360 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.hpp +132 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.cpp +154 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.hpp +218 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.hpp +112 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.cpp +311 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.hpp +396 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.hpp +117 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.hpp +181 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.cpp +169 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.hpp +233 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.hpp +110 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.cpp +107 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.cpp +63 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.hpp +124 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.cpp +150 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.hpp +229 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.cpp +284 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.hpp +354 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.cpp +78 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.hpp +127 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.hpp +88 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.hpp +75 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.cpp +262 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.hpp +327 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.hpp +153 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.hpp +276 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.cpp +136 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.hpp +191 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.cpp +100 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.hpp +150 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.cpp +104 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.cpp +98 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.hpp +141 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.hpp +82 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp +80 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.hpp +135 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.hpp +94 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.cpp +99 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.hpp +163 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.hpp +126 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.cpp +203 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.hpp +253 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.cpp +58 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.cpp +82 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.hpp +137 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.cpp +176 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.hpp +231 -0
- package/package.json +46 -0
- package/react-native.config.js +9 -0
- package/scripts/fetch-chilkat.js +184 -0
- package/src/index.ts +306 -0
- package/src/runtime/chilkat.ts +25 -0
- package/src/specs/Ai.nitro.ts +1288 -0
- package/src/specs/Asn.nitro.ts +509 -0
- package/src/specs/AuthAws.nitro.ts +234 -0
- package/src/specs/AuthAzureSAS.nitro.ts +205 -0
- package/src/specs/AuthAzureStorage.nitro.ts +172 -0
- package/src/specs/AuthGoogle.nitro.ts +291 -0
- package/src/specs/BinData.nitro.ts +470 -0
- package/src/specs/Bz2.nitro.ts +269 -0
- package/src/specs/Cache.nitro.ts +483 -0
- package/src/specs/Cert.nitro.ts +1279 -0
- package/src/specs/CertChain.nitro.ts +312 -0
- package/src/specs/CertStore.nitro.ts +430 -0
- package/src/specs/Charset.nitro.ts +518 -0
- package/src/specs/CkDateTime.nitro.ts +492 -0
- package/src/specs/CodeSign.nitro.ts +307 -0
- package/src/specs/Compression.nitro.ts +654 -0
- package/src/specs/Crypt2.nitro.ts +2387 -0
- package/src/specs/Csr.nitro.ts +461 -0
- package/src/specs/Csv.nitro.ts +670 -0
- package/src/specs/Dh.nitro.ts +343 -0
- package/src/specs/DirTree.nitro.ts +332 -0
- package/src/specs/Dkim.nitro.ts +595 -0
- package/src/specs/Dns.nitro.ts +271 -0
- package/src/specs/Dsa.nitro.ts +653 -0
- package/src/specs/DtObj.nitro.ts +198 -0
- package/src/specs/Ecc.nitro.ts +375 -0
- package/src/specs/EdDSA.nitro.ts +273 -0
- package/src/specs/Email.nitro.ts +2921 -0
- package/src/specs/EmailBundle.nitro.ts +334 -0
- package/src/specs/FileAccess.nitro.ts +836 -0
- package/src/specs/Ftp2.nitro.ts +3943 -0
- package/src/specs/Global.nitro.ts +319 -0
- package/src/specs/Gzip.nitro.ts +646 -0
- package/src/specs/Hashtable.nitro.ts +356 -0
- package/src/specs/HtmlToText.nitro.ts +238 -0
- package/src/specs/HtmlToXml.nitro.ts +323 -0
- package/src/specs/Http.nitro.ts +3095 -0
- package/src/specs/HttpCurl.nitro.ts +550 -0
- package/src/specs/HttpRequest.nitro.ts +522 -0
- package/src/specs/HttpResponse.nitro.ts +424 -0
- package/src/specs/Imap.nitro.ts +2991 -0
- package/src/specs/JavaKeyStore.nitro.ts +619 -0
- package/src/specs/Js.nitro.ts +263 -0
- package/src/specs/JsonArray.nitro.ts +681 -0
- package/src/specs/JsonObject.nitro.ts +1454 -0
- package/src/specs/Jwe.nitro.ts +756 -0
- package/src/specs/Jws.nitro.ts +733 -0
- package/src/specs/Jwt.nitro.ts +380 -0
- package/src/specs/Log.nitro.ts +258 -0
- package/src/specs/MailMan.nitro.ts +3571 -0
- package/src/specs/Mailboxes.nitro.ts +251 -0
- package/src/specs/Mcp.nitro.ts +491 -0
- package/src/specs/MessageSet.nitro.ts +320 -0
- package/src/specs/Mht.nitro.ts +1684 -0
- package/src/specs/Mime.nitro.ts +1745 -0
- package/src/specs/Ntlm.nitro.ts +556 -0
- package/src/specs/OAuth1.nitro.ts +331 -0
- package/src/specs/OAuth2.nitro.ts +1023 -0
- package/src/specs/Pdf.nitro.ts +740 -0
- package/src/specs/Pem.nitro.ts +484 -0
- package/src/specs/Pfx.nitro.ts +1003 -0
- package/src/specs/Pkcs11.nitro.ts +559 -0
- package/src/specs/PrivateKey.nitro.ts +994 -0
- package/src/specs/Prng.nitro.ts +348 -0
- package/src/specs/PublicKey.nitro.ts +610 -0
- package/src/specs/Rest.nitro.ts +1972 -0
- package/src/specs/Rsa.nitro.ts +453 -0
- package/src/specs/SCard.nitro.ts +739 -0
- package/src/specs/SFtp.nitro.ts +3138 -0
- package/src/specs/SFtpDir.nitro.ts +213 -0
- package/src/specs/SFtpFile.nitro.ts +452 -0
- package/src/specs/ScMinidriver.nitro.ts +443 -0
- package/src/specs/Scp.nitro.ts +708 -0
- package/src/specs/Secrets.nitro.ts +470 -0
- package/src/specs/SecureString.nitro.ts +231 -0
- package/src/specs/ServerSentEvent.nitro.ts +183 -0
- package/src/specs/Socket.nitro.ts +3335 -0
- package/src/specs/Spider.nitro.ts +609 -0
- package/src/specs/Ssh.nitro.ts +2842 -0
- package/src/specs/SshKey.nitro.ts +740 -0
- package/src/specs/SshTunnel.nitro.ts +1243 -0
- package/src/specs/Stream.nitro.ts +737 -0
- package/src/specs/StringArray.nitro.ts +396 -0
- package/src/specs/StringBuilder.nitro.ts +920 -0
- package/src/specs/StringTable.nitro.ts +271 -0
- package/src/specs/Tar.nitro.ts +804 -0
- package/src/specs/TrustedRoots.nitro.ts +360 -0
- package/src/specs/UnixCompress.nitro.ts +293 -0
- package/src/specs/Upload.nitro.ts +623 -0
- package/src/specs/Url.nitro.ts +246 -0
- package/src/specs/WebSocket.nitro.ts +840 -0
- package/src/specs/Xml.nitro.ts +1988 -0
- package/src/specs/XmlCertVault.nitro.ts +259 -0
- package/src/specs/XmlDSig.nitro.ts +464 -0
- package/src/specs/XmlDSigGen.nitro.ts +978 -0
- package/src/specs/Xmp.nitro.ts +364 -0
- package/src/specs/Zip.nitro.ts +1611 -0
- package/src/specs/ZipCrc.nitro.ts +229 -0
- package/src/specs/ZipEntry.nitro.ts +782 -0
|
@@ -0,0 +1,994 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
import type { HybridObject } from 'react-native-nitro-modules'
|
|
3
|
+
import type { BinData } from './BinData.nitro'
|
|
4
|
+
import type { JsonObject } from './JsonObject.nitro'
|
|
5
|
+
import type { PublicKey } from './PublicKey.nitro'
|
|
6
|
+
import type { StringBuilder } from './StringBuilder.nitro'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Load, inspect, export, save, and convert one private key.
|
|
10
|
+
*
|
|
11
|
+
* `PrivateKey` is a key-container class. It holds one current RSA, DSA, EC, or Ed25519 private key
|
|
12
|
+
* and provides
|
|
13
|
+
* format conversion, persistence, JWK/XML access, raw EC and Ed25519 access, and public-key
|
|
14
|
+
* extraction. Cryptographic
|
|
15
|
+
* operations such as signing, decryption, TLS authentication, and SSH authentication are performed
|
|
16
|
+
* by other Chilkat
|
|
17
|
+
* classes that receive the loaded `PrivateKey`.
|
|
18
|
+
*
|
|
19
|
+
* **Content-based loading**
|
|
20
|
+
*
|
|
21
|
+
* Named load methods inspect the content and recognize supported unencrypted formats.
|
|
22
|
+
* Password-taking loaders also recognize encrypted PKCS #8 and unencrypted input.
|
|
23
|
+
*
|
|
24
|
+
* **Standard export choices**
|
|
25
|
+
*
|
|
26
|
+
* Use PKCS #8 for modern algorithm-independent interchange, encrypted PKCS #8 for
|
|
27
|
+
* password-protected storage, JWK for JOSE, and traditional PEM only when required by a legacy
|
|
28
|
+
* consumer.
|
|
29
|
+
*
|
|
30
|
+
* **One-key state**
|
|
31
|
+
*
|
|
32
|
+
* A successful load replaces the current key. A failed load leaves the object empty. Check
|
|
33
|
+
* `KeyType` and `BitLength` after loading when the expected algorithm matters.
|
|
34
|
+
*
|
|
35
|
+
* **Independent public key**
|
|
36
|
+
*
|
|
37
|
+
* `ToPublicKey` creates an independent `PublicKey` that is unaffected when this object is reloaded
|
|
38
|
+
* with another key.
|
|
39
|
+
*
|
|
40
|
+
* **Key generation**
|
|
41
|
+
*
|
|
42
|
+
* Generate new keys with `Rsa`, `Ecc`, or `EdDSA`, which can place the generated key into a
|
|
43
|
+
* `PrivateKey`.
|
|
44
|
+
*
|
|
45
|
+
* **Certificates are separate**
|
|
46
|
+
*
|
|
47
|
+
* A private key does not contain a certificate or chain. Use `Cert` or `Pfx` when certificate
|
|
48
|
+
* association is required.
|
|
49
|
+
*
|
|
50
|
+
* **Recommended format selection:** Prefer unencrypted PKCS #8 for transient interchange, encrypted
|
|
51
|
+
* PKCS #8 with `aes256` and a strong password for stored key files, JWK for JWT/JWS/JWE workflows,
|
|
52
|
+
* and traditional RSA or EC PEM only when the receiving software requires it.
|
|
53
|
+
*
|
|
54
|
+
* **Protect private material:** Base64, hexadecimal, PEM, JWK, and XML are encodings or containers,
|
|
55
|
+
* not encryption. Avoid exporting a private key unless necessary, and protect every unencrypted
|
|
56
|
+
* representation as sensitive data.
|
|
57
|
+
*
|
|
58
|
+
* For an extended overview, see [PrivateKey Class
|
|
59
|
+
* Overview](https://www.chilkatsoft.com/privatekey_class_overview.asp).
|
|
60
|
+
*
|
|
61
|
+
* Each `PrivateKey` instance owns a native Chilkat object. It is released when the JavaScript
|
|
62
|
+
* object is
|
|
63
|
+
* garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
|
|
64
|
+
* Create one with `new PrivateKey()`.
|
|
65
|
+
*
|
|
66
|
+
* Methods that can take a while (network, files, compression, key generation) also have an
|
|
67
|
+
* `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
|
|
68
|
+
* rendering. While such a call is pending, every other call on this object throws, except
|
|
69
|
+
* {@link PrivateKey.abort} and assigning {@link PrivateKey.onPercentDone} / {@link
|
|
70
|
+
* PrivateKey.onProgressInfo}.
|
|
71
|
+
*/
|
|
72
|
+
export interface PrivateKey extends HybridObject<{ ios: 'c++', android: 'c++' }> {
|
|
73
|
+
// ---- Properties ----
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Provides HTML-formatted information about the last called method or property. If a method call
|
|
77
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
78
|
+
* available regardless of the method call's success.
|
|
79
|
+
*
|
|
80
|
+
* This property is read-only.
|
|
81
|
+
*/
|
|
82
|
+
readonly lastErrorHtml: string
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Provides plain text information about the last called method or property. If a method call
|
|
86
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
87
|
+
* available regardless of the method call's success.
|
|
88
|
+
*
|
|
89
|
+
* This property is read-only.
|
|
90
|
+
*/
|
|
91
|
+
readonly lastErrorText: string
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Provides XML-formatted information about the last called method or property. If a method call
|
|
95
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
96
|
+
* available regardless of the method call's success.
|
|
97
|
+
*
|
|
98
|
+
* This property is read-only.
|
|
99
|
+
*/
|
|
100
|
+
readonly lastErrorXml: string
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Version of the component/library, such as "10.1.0"
|
|
104
|
+
*
|
|
105
|
+
* This property is read-only.
|
|
106
|
+
*/
|
|
107
|
+
readonly version: string
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* If set to a file path, this property logs the LastErrorText of each Chilkat method or property
|
|
111
|
+
* call to the specified file. This logging helps identify the context and history of Chilkat
|
|
112
|
+
* calls leading up to any crash or hang, aiding in debugging.
|
|
113
|
+
*
|
|
114
|
+
* Enabling the VerboseLogging property provides more detailed information.
|
|
115
|
+
*
|
|
116
|
+
* This property is mainly used for debugging rare instances where a Chilkat method call causes a
|
|
117
|
+
* hang or crash, which should generally not happen.
|
|
118
|
+
*
|
|
119
|
+
* Possible causes of hangs include:
|
|
120
|
+
*
|
|
121
|
+
* - A timeout property set to 0, indicating an infinite timeout.
|
|
122
|
+
*
|
|
123
|
+
* - A hang occurring within an event callback in the application code.
|
|
124
|
+
*
|
|
125
|
+
* - An internal bug in the Chilkat code causing the hang.
|
|
126
|
+
*/
|
|
127
|
+
debugLogFilePath: string
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
|
|
131
|
+
* contain more verbose information. The default value is `false`. Verbose logging should only be
|
|
132
|
+
* used for debugging. The potentially large quantity of logged information may adversely affect
|
|
133
|
+
* peformance.
|
|
134
|
+
*/
|
|
135
|
+
verboseLogging: boolean
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Indicates the success or failure of the most recent method call: `true` means success, `false`
|
|
139
|
+
* means failure. This property remains unchanged by property setters or getters. This method is
|
|
140
|
+
* present to address challenges in checking for null or Nothing returns in certain programming
|
|
141
|
+
* languages. Note: This property does not apply to methods that return integer values or to
|
|
142
|
+
* boolean-returning methods where the boolean does not indicate success or failure.
|
|
143
|
+
*/
|
|
144
|
+
lastMethodSuccess: boolean
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Returns the nominal size of the loaded private key, in bits. The value is `0` when the object
|
|
148
|
+
* is empty. For RSA it is the modulus size; for DSA it is the size of `p`; for EC it is the
|
|
149
|
+
* named-curve field size; and for Ed25519 it is `256`.
|
|
150
|
+
*
|
|
151
|
+
* **Comparing strength:** Bit lengths are meaningful only within the context of the algorithm. A
|
|
152
|
+
* 256-bit EC key and a 256-bit RSA key do not provide comparable security.
|
|
153
|
+
*
|
|
154
|
+
* This property is read-only.
|
|
155
|
+
*/
|
|
156
|
+
readonly bitLength: number
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Identifies the algorithm of the currently loaded key. The value is one of `empty`, `rsa`,
|
|
160
|
+
* `dsa`, `ecc`, or `ed25519`. `empty` means that no usable private key is loaded.
|
|
161
|
+
*
|
|
162
|
+
* **One-key state model:** A `PrivateKey` object holds one current key. Loading another key
|
|
163
|
+
* replaces it; a failed load leaves the object empty.
|
|
164
|
+
*
|
|
165
|
+
* This property is read-only.
|
|
166
|
+
*/
|
|
167
|
+
readonly keyType: string
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Controls the block cipher used by encrypted PKCS #8 export methods. Supported values are
|
|
171
|
+
* `3des`, `aes128`, `aes192`, and `aes256`. Values are case-insensitive and are normalized to
|
|
172
|
+
* lowercase. The default is `3des`. Assigning an empty or unrecognized value resets the property
|
|
173
|
+
* to `3des`. All choices use CBC mode.
|
|
174
|
+
*
|
|
175
|
+
* Encrypted PKCS #8 output uses PBES2 with PBKDF2. The generated parameters use an 8-byte salt,
|
|
176
|
+
* 2048 PBKDF2 iterations, and the default PBKDF2 PRF (HMAC-SHA-1). The selected cipher uses CBC
|
|
177
|
+
* mode with a newly generated IV.
|
|
178
|
+
*
|
|
179
|
+
* **Recommended setting:** Prefer `aes256` for new output unless an older consumer requires 3DES.
|
|
180
|
+
* This property selects encryption parameters only; password quality remains essential.
|
|
181
|
+
*/
|
|
182
|
+
pkcs8EncryptAlg: string
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Provides a catch-all string for specialized compatibility options that are not exposed as
|
|
186
|
+
* ordinary properties. The default is the empty string, which is appropriate for normal use.
|
|
187
|
+
*
|
|
188
|
+
* **Leave empty unless instructed:** Set this property only when a Chilkat example, release note,
|
|
189
|
+
* or support response documents a specific option needed for an unusual interoperability case.
|
|
190
|
+
*/
|
|
191
|
+
uncommonOptions: string
|
|
192
|
+
|
|
193
|
+
// ---- Methods ----
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Exports the key as the traditional or preferred unencrypted DER representation and encodes the
|
|
197
|
+
* DER as text using the binary encoding named by `encoding`. The binary bytes are the same as
|
|
198
|
+
* returned by `GetPkcs1`.
|
|
199
|
+
*
|
|
200
|
+
* **Historical method name:** PKCS #1 is specifically an RSA standard. For non-RSA key types,
|
|
201
|
+
* this method returns the applicable traditional structure or a PKCS #8 fallback.
|
|
202
|
+
*
|
|
203
|
+
* Key typeReturned representation
|
|
204
|
+
*
|
|
205
|
+
* | RSA | | `RSAPrivateKey` DER from PKCS #1. |
|
|
206
|
+
*
|
|
207
|
+
* | DSA | | The traditional six-integer DSA private-key structure. |
|
|
208
|
+
*
|
|
209
|
+
* | EC | | `ECPrivateKey` DER from RFC 5915. |
|
|
210
|
+
*
|
|
211
|
+
* | Ed25519 | | PKCS #8 `PrivateKeyInfo` DER using the Ed25519 OID `1.3.101.112`, because Ed25519
|
|
212
|
+
* has no traditional PKCS #1 form. |
|
|
213
|
+
*
|
|
214
|
+
* For RSA, the DER contains:
|
|
215
|
+
*
|
|
216
|
+
* ```
|
|
217
|
+
* RSAPrivateKey ::= SEQUENCE {
|
|
218
|
+
* version Version,
|
|
219
|
+
* modulus INTEGER, -- n
|
|
220
|
+
* publicExponent INTEGER, -- e
|
|
221
|
+
* privateExponent INTEGER, -- d
|
|
222
|
+
* prime1 INTEGER, -- p
|
|
223
|
+
* prime2 INTEGER, -- q
|
|
224
|
+
* exponent1 INTEGER, -- d mod (p-1)
|
|
225
|
+
* exponent2 INTEGER, -- d mod (q-1)
|
|
226
|
+
* coefficient INTEGER, -- (inverse of q) mod p
|
|
227
|
+
* otherPrimeInfos OtherPrimeInfos OPTIONAL
|
|
228
|
+
* }
|
|
229
|
+
* ```
|
|
230
|
+
*
|
|
231
|
+
* For EC, the traditional structure is:
|
|
232
|
+
*
|
|
233
|
+
* ```
|
|
234
|
+
* ECPrivateKey ::= SEQUENCE {
|
|
235
|
+
* version INTEGER { ecPrivkeyVer1(1) },
|
|
236
|
+
* privateKey OCTET STRING,
|
|
237
|
+
* parameters [0] ECParameters OPTIONAL,
|
|
238
|
+
* publicKey [1] BIT STRING OPTIONAL
|
|
239
|
+
* }
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
242
|
+
* **Encoding validation:** An unsupported `encoding` encoding name causes the method to fail; it
|
|
243
|
+
* does not silently select another encoding.
|
|
244
|
+
*
|
|
245
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
246
|
+
* {@link PrivateKey.lastErrorText}.
|
|
247
|
+
*/
|
|
248
|
+
getPkcs1ENC(encoding: string): string
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Exports the key as unencrypted PKCS #8 DER and encodes the DER as text using the binary
|
|
252
|
+
* encoding named by `encoding`. PKCS #8 is an algorithm-independent private-key container.
|
|
253
|
+
* Chilkat emits the classic version-0 `PrivateKeyInfo` structure, with the algorithm-specific
|
|
254
|
+
* private-key DER in an `OCTET STRING`.
|
|
255
|
+
* ```
|
|
256
|
+
* PrivateKeyInfo ::= SEQUENCE {
|
|
257
|
+
* version Version,
|
|
258
|
+
* privateKeyAlgorithm AlgorithmIdentifier,
|
|
259
|
+
* privateKey OCTET STRING,
|
|
260
|
+
* attributes [0] IMPLICIT Attributes OPTIONAL
|
|
261
|
+
* }
|
|
262
|
+
* ```
|
|
263
|
+
*
|
|
264
|
+
* **Encoding validation:** An unsupported `encoding` encoding name causes the method to fail; it
|
|
265
|
+
* does not silently select another encoding.
|
|
266
|
+
*
|
|
267
|
+
* **Encoding is not encryption:** Base64, hexadecimal, and similar encodings only represent the
|
|
268
|
+
* DER bytes as text. They do not protect the private key.
|
|
269
|
+
*
|
|
270
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
271
|
+
* {@link PrivateKey.lastErrorText}.
|
|
272
|
+
*/
|
|
273
|
+
getPkcs8ENC(encoding: string): string
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Exports the key as password-protected PKCS #8 DER, then encodes the encrypted DER as text.
|
|
277
|
+
* `encoding` names the binary encoding and `password` supplies the password. The cipher is
|
|
278
|
+
* selected by {@link PrivateKey.pkcs8EncryptAlg}.
|
|
279
|
+
*
|
|
280
|
+
* Encrypted PKCS #8 output uses PBES2 with PBKDF2. The generated parameters use an 8-byte salt,
|
|
281
|
+
* 2048 PBKDF2 iterations, and the default PBKDF2 PRF (HMAC-SHA-1). The selected cipher uses CBC
|
|
282
|
+
* mode with a newly generated IV.
|
|
283
|
+
*
|
|
284
|
+
* **Encoding validation:** An unsupported `encoding` encoding name causes the method to fail.
|
|
285
|
+
*
|
|
286
|
+
* **Empty passwords:** A nonempty, strong password should be used. An empty `password` is
|
|
287
|
+
* accepted but provides no meaningful password protection.
|
|
288
|
+
*
|
|
289
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
290
|
+
* {@link PrivateKey.lastErrorText}.
|
|
291
|
+
*/
|
|
292
|
+
getPkcs8EncryptedENC(encoding: string, password: string): string
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Exports the key as password-protected PKCS #8 PEM using `password` as the password. The cipher
|
|
296
|
+
* is selected by {@link PrivateKey.pkcs8EncryptAlg}. The output uses:
|
|
297
|
+
* ```
|
|
298
|
+
* -----BEGIN ENCRYPTED PRIVATE KEY-----
|
|
299
|
+
* ...
|
|
300
|
+
* -----END ENCRYPTED PRIVATE KEY-----
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* Encrypted PKCS #8 output uses PBES2 with PBKDF2. The generated parameters use an 8-byte salt,
|
|
304
|
+
* 2048 PBKDF2 iterations, and the default PBKDF2 PRF (HMAC-SHA-1). The selected cipher uses CBC
|
|
305
|
+
* mode with a newly generated IV.
|
|
306
|
+
*
|
|
307
|
+
* **Generated PEM formatting:** PEM output uses CRLF line endings, Base64 lines of at most 64
|
|
308
|
+
* characters, and a final CRLF.
|
|
309
|
+
*
|
|
310
|
+
* **Empty passwords:** An empty `password` is accepted and still produces encrypted PKCS #8, but
|
|
311
|
+
* it provides no meaningful password protection.
|
|
312
|
+
*
|
|
313
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
314
|
+
* {@link PrivateKey.lastErrorText}.
|
|
315
|
+
*/
|
|
316
|
+
getPkcs8EncryptedPem(password: string): string
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Exports the key as unencrypted PKCS #8 PEM. For RSA, EC, and Ed25519, the PEM armor is:
|
|
320
|
+
* ```
|
|
321
|
+
* -----BEGIN PRIVATE KEY-----
|
|
322
|
+
* ...
|
|
323
|
+
* -----END PRIVATE KEY-----
|
|
324
|
+
* ```
|
|
325
|
+
* PKCS #8 is an algorithm-independent private-key container. Chilkat emits the classic version-0
|
|
326
|
+
* `PrivateKeyInfo` structure, with the algorithm-specific private-key DER in an `OCTET STRING`.
|
|
327
|
+
* ```
|
|
328
|
+
* PrivateKeyInfo ::= SEQUENCE {
|
|
329
|
+
* version Version,
|
|
330
|
+
* privateKeyAlgorithm AlgorithmIdentifier,
|
|
331
|
+
* privateKey OCTET STRING,
|
|
332
|
+
* attributes [0] IMPLICIT Attributes OPTIONAL
|
|
333
|
+
* }
|
|
334
|
+
* ```
|
|
335
|
+
*
|
|
336
|
+
* **Generated PEM formatting:** PEM output uses CRLF line endings, Base64 lines of at most 64
|
|
337
|
+
* characters, and a final CRLF.
|
|
338
|
+
*
|
|
339
|
+
* **Security note:** This output is not password-protected.
|
|
340
|
+
*
|
|
341
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
342
|
+
* {@link PrivateKey.lastErrorText}.
|
|
343
|
+
*/
|
|
344
|
+
getPkcs8Pem(): string
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Exports the key in Chilkat-compatible XML. The XML is not encrypted. RSA and DSA components use
|
|
348
|
+
* ordinary Base64.
|
|
349
|
+
*
|
|
350
|
+
* RSA keys use:
|
|
351
|
+
*
|
|
352
|
+
* ```
|
|
353
|
+
* <RSAKeyValue>
|
|
354
|
+
* <Modulus>...</Modulus>
|
|
355
|
+
* <Exponent>...</Exponent>
|
|
356
|
+
* <D>...</D>
|
|
357
|
+
* <P>...</P>
|
|
358
|
+
* <Q>...</Q>
|
|
359
|
+
* <DP>...</DP>
|
|
360
|
+
* <DQ>...</DQ>
|
|
361
|
+
* <InverseQ>...</InverseQ>
|
|
362
|
+
* </RSAKeyValue>
|
|
363
|
+
* ```
|
|
364
|
+
*
|
|
365
|
+
* DSA keys use:
|
|
366
|
+
*
|
|
367
|
+
* ```
|
|
368
|
+
* <DSAKeyValue>
|
|
369
|
+
* <P>...</P>
|
|
370
|
+
* <Q>...</Q>
|
|
371
|
+
* <G>...</G>
|
|
372
|
+
* <Y>...</Y>
|
|
373
|
+
* <X>...</X>
|
|
374
|
+
* </DSAKeyValue>
|
|
375
|
+
* ```
|
|
376
|
+
*
|
|
377
|
+
* EC keys place the named curve in the `curve` attribute and Base64-encode the RFC 5915
|
|
378
|
+
* `ECPrivateKey` DER in the element content:
|
|
379
|
+
*
|
|
380
|
+
* ```
|
|
381
|
+
* <ECCKeyValue curve="secp256r1">...</ECCKeyValue>
|
|
382
|
+
* ```
|
|
383
|
+
*
|
|
384
|
+
* Ed25519 keys Base64-encode 64 bytes consisting of the 32-byte private seed followed by the
|
|
385
|
+
* 32-byte public key:
|
|
386
|
+
*
|
|
387
|
+
* ```
|
|
388
|
+
* <Ed25519KeyValue>...</Ed25519KeyValue>
|
|
389
|
+
* ```
|
|
390
|
+
*
|
|
391
|
+
* **Round-trip support:** XML produced by this method can be loaded by {@link
|
|
392
|
+
* PrivateKey.loadXml}, {@link PrivateKey.loadXmlFile}, or the general format-detection methods.
|
|
393
|
+
*
|
|
394
|
+
* **Interoperability note:** These XML forms are Chilkat-compatible representations. Prefer PKCS
|
|
395
|
+
* #8, PEM, or JWK when interoperating with systems that expect standard key containers.
|
|
396
|
+
*
|
|
397
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
398
|
+
* {@link PrivateKey.lastErrorText}.
|
|
399
|
+
*/
|
|
400
|
+
getXml(): string
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Loads a private key from the PEM text in `pemStr`. `password` supplies the password when the
|
|
404
|
+
* PEM is encrypted. The method accepts encrypted PKCS #8 PEM and also loads supported unencrypted
|
|
405
|
+
* PEM.
|
|
406
|
+
* ```
|
|
407
|
+
* -----BEGIN ENCRYPTED PRIVATE KEY-----
|
|
408
|
+
* ...
|
|
409
|
+
* -----END ENCRYPTED PRIVATE KEY-----
|
|
410
|
+
* ```
|
|
411
|
+
*
|
|
412
|
+
* **Content auto-detection:** Chilkat examines the content rather than relying on the method name
|
|
413
|
+
* or filename extension. This password-taking method can load both encrypted and unencrypted
|
|
414
|
+
* supported private-key representations.
|
|
415
|
+
*
|
|
416
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
417
|
+
* fails, this object is left empty.
|
|
418
|
+
*
|
|
419
|
+
* **Password failure:** An incorrect password causes loading to fail and leaves this object
|
|
420
|
+
* empty.
|
|
421
|
+
*
|
|
422
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
423
|
+
* {@link PrivateKey.lastErrorText}.
|
|
424
|
+
*/
|
|
425
|
+
loadEncryptedPem(pemStr: string, password: string): void
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Loads a private key from the file at `path`, using `password` when the detected key is
|
|
429
|
+
* encrypted. The file may contain encrypted PKCS #8 PEM or another supported encrypted or
|
|
430
|
+
* unencrypted representation.
|
|
431
|
+
*
|
|
432
|
+
* **Content auto-detection:** Chilkat examines the content rather than relying on the method name
|
|
433
|
+
* or filename extension. This password-taking method can load both encrypted and unencrypted
|
|
434
|
+
* supported private-key representations.
|
|
435
|
+
*
|
|
436
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
437
|
+
* fails, this object is left empty.
|
|
438
|
+
*
|
|
439
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
440
|
+
* {@link PrivateKey.lastErrorText}.
|
|
441
|
+
*/
|
|
442
|
+
loadEncryptedPemFile(path: string, password: string): void
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Loads a private key from the PEM text in `str`. This method has no password argument and
|
|
446
|
+
* therefore cannot load password-protected PEM. Use {@link PrivateKey.loadEncryptedPem} for
|
|
447
|
+
* encrypted input.
|
|
448
|
+
*
|
|
449
|
+
* **Content auto-detection:** The method name identifies the expected or traditional use, but
|
|
450
|
+
* Chilkat examines the content and can load other supported unencrypted private-key
|
|
451
|
+
* representations. Encrypted input requires a load method that accepts a password.
|
|
452
|
+
*
|
|
453
|
+
* **PEM block selection:** If the text contains multiple PEM blocks, Chilkat selects the first
|
|
454
|
+
* supported private-key block. It skips preceding public-key or unrelated PEM blocks.
|
|
455
|
+
*
|
|
456
|
+
* **Accepted surrounding content:** Leading and trailing whitespace, a UTF-8 BOM, and trailing
|
|
457
|
+
* non-PEM text are accepted.
|
|
458
|
+
*
|
|
459
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
460
|
+
* fails, this object is left empty.
|
|
461
|
+
*
|
|
462
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
463
|
+
* {@link PrivateKey.lastErrorText}.
|
|
464
|
+
*/
|
|
465
|
+
loadPem(str: string): void
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Loads a private key from the file at `path`. This method has no password argument and therefore
|
|
469
|
+
* cannot load a password-protected key. Use {@link PrivateKey.loadEncryptedPemFile} or {@link
|
|
470
|
+
* PrivateKey.loadAnyFormatFile} when a password may be required.
|
|
471
|
+
*
|
|
472
|
+
* **Content auto-detection:** The method name identifies the expected or traditional use, but
|
|
473
|
+
* Chilkat examines the content and can load other supported unencrypted private-key
|
|
474
|
+
* representations. Encrypted input requires a load method that accepts a password.
|
|
475
|
+
*
|
|
476
|
+
* **PEM block selection:** For a file containing multiple PEM blocks, Chilkat selects the first
|
|
477
|
+
* supported private-key block and skips preceding public-key or unrelated blocks.
|
|
478
|
+
*
|
|
479
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
480
|
+
* fails, this object is left empty.
|
|
481
|
+
*
|
|
482
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
483
|
+
* {@link PrivateKey.lastErrorText}.
|
|
484
|
+
*/
|
|
485
|
+
loadPemFile(path: string): void
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Loads a private key from the file at `path`, using `password` when the detected key is
|
|
489
|
+
* encrypted. The method can load encrypted PKCS #8 DER or PEM and also supported unencrypted
|
|
490
|
+
* representations.
|
|
491
|
+
*
|
|
492
|
+
* **Content auto-detection:** Chilkat examines the content rather than relying on the method name
|
|
493
|
+
* or filename extension. This password-taking method can load both encrypted and unencrypted
|
|
494
|
+
* supported private-key representations.
|
|
495
|
+
*
|
|
496
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
497
|
+
* fails, this object is left empty.
|
|
498
|
+
*
|
|
499
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
500
|
+
* {@link PrivateKey.lastErrorText}.
|
|
501
|
+
*/
|
|
502
|
+
loadPkcs8EncryptedFile(path: string, password: string): void
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Loads a private key from the file at `path`. Although named for unencrypted PKCS #8, the method
|
|
506
|
+
* examines the file content and accepts other supported unencrypted private-key representations.
|
|
507
|
+
*
|
|
508
|
+
* **Content auto-detection:** The method name identifies the expected or traditional use, but
|
|
509
|
+
* Chilkat examines the content and can load other supported unencrypted private-key
|
|
510
|
+
* representations. Encrypted input requires a load method that accepts a password.
|
|
511
|
+
*
|
|
512
|
+
* **Trailing DER data:** When the file begins with a complete supported DER private-key object,
|
|
513
|
+
* trailing bytes or a second concatenated DER object are ignored; the first key is loaded.
|
|
514
|
+
*
|
|
515
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
516
|
+
* fails, this object is left empty.
|
|
517
|
+
*
|
|
518
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
519
|
+
* {@link PrivateKey.lastErrorText}.
|
|
520
|
+
*/
|
|
521
|
+
loadPkcs8File(path: string): void
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Loads a private key from the file at `path`, using `password` if the detected representation is
|
|
525
|
+
* encrypted. This Windows-only method supports Microsoft PVK and also participates in Chilkat
|
|
526
|
+
* private-key content auto-detection.
|
|
527
|
+
*
|
|
528
|
+
* **Content auto-detection:** Chilkat examines the content rather than relying on the method name
|
|
529
|
+
* or filename extension. This password-taking method can load both encrypted and unencrypted
|
|
530
|
+
* supported private-key representations.
|
|
531
|
+
*
|
|
532
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
533
|
+
* fails, this object is left empty.
|
|
534
|
+
*
|
|
535
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
536
|
+
* {@link PrivateKey.lastErrorText}.
|
|
537
|
+
*/
|
|
538
|
+
loadPvkFile(path: string, password: string): void
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Loads a private key from the XML text in `xml`. Supported Chilkat-compatible XML roots include
|
|
542
|
+
* `RSAKeyValue`, `DSAKeyValue`, `ECCKeyValue`, and `Ed25519KeyValue`.
|
|
543
|
+
*
|
|
544
|
+
* **Content auto-detection:** The method name identifies the expected or traditional use, but
|
|
545
|
+
* Chilkat examines the content and can load other supported unencrypted private-key
|
|
546
|
+
* representations. Encrypted input requires a load method that accepts a password.
|
|
547
|
+
*
|
|
548
|
+
* **Ed25519 XML:** The `Ed25519KeyValue` content is ordinary Base64 for the 32-byte private seed
|
|
549
|
+
* followed by the 32-byte public key.
|
|
550
|
+
*
|
|
551
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
552
|
+
* fails, this object is left empty.
|
|
553
|
+
*
|
|
554
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
555
|
+
* {@link PrivateKey.lastErrorText}.
|
|
556
|
+
*/
|
|
557
|
+
loadXml(xml: string): void
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Loads a private key from the file at `path`. Chilkat recognizes RSA, DSA, EC, and Ed25519 XML
|
|
561
|
+
* produced by {@link PrivateKey.getXml}, and also auto-detects other supported unencrypted
|
|
562
|
+
* private-key representations.
|
|
563
|
+
*
|
|
564
|
+
* **Content auto-detection:** The method name identifies the expected or traditional use, but
|
|
565
|
+
* Chilkat examines the content and can load other supported unencrypted private-key
|
|
566
|
+
* representations. Encrypted input requires a load method that accepts a password.
|
|
567
|
+
*
|
|
568
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
569
|
+
* fails, this object is left empty.
|
|
570
|
+
*
|
|
571
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
572
|
+
* {@link PrivateKey.lastErrorText}.
|
|
573
|
+
*/
|
|
574
|
+
loadXmlFile(path: string): void
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Saves the key as password-protected PKCS #8 DER. `password` supplies the password and `path` is
|
|
578
|
+
* the destination path. The cipher is selected by {@link PrivateKey.pkcs8EncryptAlg}.
|
|
579
|
+
*
|
|
580
|
+
* Encrypted PKCS #8 output uses PBES2 with PBKDF2. The generated parameters use an 8-byte salt,
|
|
581
|
+
* 2048 PBKDF2 iterations, and the default PBKDF2 PRF (HMAC-SHA-1). The selected cipher uses CBC
|
|
582
|
+
* mode with a newly generated IV.
|
|
583
|
+
*
|
|
584
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
585
|
+
* created; the parent directory must already exist.
|
|
586
|
+
*
|
|
587
|
+
* **Empty passwords:** An empty `password` is accepted but provides no meaningful password
|
|
588
|
+
* protection.
|
|
589
|
+
*
|
|
590
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
591
|
+
* {@link PrivateKey.lastErrorText}.
|
|
592
|
+
*/
|
|
593
|
+
savePkcs8EncryptedFile(password: string, path: string): void
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Saves the key as password-protected PKCS #8 PEM. `password` supplies the password and `path` is
|
|
597
|
+
* the destination path. The file uses the `ENCRYPTED PRIVATE KEY` PEM label, and the cipher is
|
|
598
|
+
* selected by {@link PrivateKey.pkcs8EncryptAlg}.
|
|
599
|
+
*
|
|
600
|
+
* Encrypted PKCS #8 output uses PBES2 with PBKDF2. The generated parameters use an 8-byte salt,
|
|
601
|
+
* 2048 PBKDF2 iterations, and the default PBKDF2 PRF (HMAC-SHA-1). The selected cipher uses CBC
|
|
602
|
+
* mode with a newly generated IV.
|
|
603
|
+
*
|
|
604
|
+
* **Generated PEM formatting:** PEM output uses CRLF line endings, Base64 lines of at most 64
|
|
605
|
+
* characters, and a final CRLF.
|
|
606
|
+
*
|
|
607
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
608
|
+
* created; the parent directory must already exist.
|
|
609
|
+
*
|
|
610
|
+
* **Empty passwords:** An empty `password` is accepted but provides no meaningful password
|
|
611
|
+
* protection.
|
|
612
|
+
*
|
|
613
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
614
|
+
* {@link PrivateKey.lastErrorText}.
|
|
615
|
+
*/
|
|
616
|
+
savePkcs8EncryptedPemFile(password: string, path: string): void
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Saves the key as unencrypted PKCS #8 DER at `path`. PKCS #8 is an algorithm-independent
|
|
620
|
+
* private-key container. Chilkat emits the classic version-0 `PrivateKeyInfo` structure, with the
|
|
621
|
+
* algorithm-specific private-key DER in an `OCTET STRING`.
|
|
622
|
+
* ```
|
|
623
|
+
* PrivateKeyInfo ::= SEQUENCE {
|
|
624
|
+
* version Version,
|
|
625
|
+
* privateKeyAlgorithm AlgorithmIdentifier,
|
|
626
|
+
* privateKey OCTET STRING,
|
|
627
|
+
* attributes [0] IMPLICIT Attributes OPTIONAL
|
|
628
|
+
* }
|
|
629
|
+
* ```
|
|
630
|
+
*
|
|
631
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
632
|
+
* created; the parent directory must already exist.
|
|
633
|
+
*
|
|
634
|
+
* **macOS Keychain:** Starting in Chilkat v10.0.0, `path` may be formatted as `keychain:<label>`
|
|
635
|
+
* to save the private key to the Apple Keychain.
|
|
636
|
+
*
|
|
637
|
+
* **Security note:** The file contains cleartext private-key material.
|
|
638
|
+
*
|
|
639
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
640
|
+
* {@link PrivateKey.lastErrorText}.
|
|
641
|
+
*/
|
|
642
|
+
savePkcs8File(path: string): void
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Saves the key as unencrypted PKCS #8 PEM at `path`. The PEM label is `PRIVATE KEY` for RSA, EC,
|
|
646
|
+
* Ed25519, and other supported PKCS #8 key types.PKCS #8 is an algorithm-independent private-key
|
|
647
|
+
* container. Chilkat emits the classic version-0 `PrivateKeyInfo` structure, with the
|
|
648
|
+
* algorithm-specific private-key DER in an `OCTET STRING`.
|
|
649
|
+
* ```
|
|
650
|
+
* PrivateKeyInfo ::= SEQUENCE {
|
|
651
|
+
* version Version,
|
|
652
|
+
* privateKeyAlgorithm AlgorithmIdentifier,
|
|
653
|
+
* privateKey OCTET STRING,
|
|
654
|
+
* attributes [0] IMPLICIT Attributes OPTIONAL
|
|
655
|
+
* }
|
|
656
|
+
* ```
|
|
657
|
+
*
|
|
658
|
+
* **Generated PEM formatting:** PEM output uses CRLF line endings, Base64 lines of at most 64
|
|
659
|
+
* characters, and a final CRLF.
|
|
660
|
+
*
|
|
661
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
662
|
+
* created; the parent directory must already exist.
|
|
663
|
+
*
|
|
664
|
+
* **Security note:** The file is not password-protected.
|
|
665
|
+
*
|
|
666
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
667
|
+
* {@link PrivateKey.lastErrorText}.
|
|
668
|
+
*/
|
|
669
|
+
savePkcs8PemFile(path: string): void
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Saves the key as unencrypted Chilkat-compatible XML at `path`. The XML representation is the
|
|
673
|
+
* same as returned by {@link PrivateKey.getXml}.
|
|
674
|
+
*
|
|
675
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
676
|
+
* created; the parent directory must already exist.
|
|
677
|
+
*
|
|
678
|
+
* **Security note:** The XML contains cleartext private-key material.
|
|
679
|
+
*
|
|
680
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
681
|
+
* {@link PrivateKey.lastErrorText}.
|
|
682
|
+
*/
|
|
683
|
+
saveXmlFile(path: string): void
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Exports the key as unencrypted PEM, preferring the traditional algorithm-specific
|
|
687
|
+
* representation when one exists.
|
|
688
|
+
*
|
|
689
|
+
* Key typePEM labelBody
|
|
690
|
+
*
|
|
691
|
+
* | RSA | | `RSA PRIVATE KEY` | | PKCS #1 DER |
|
|
692
|
+
*
|
|
693
|
+
* | DSA | | `DSA PRIVATE KEY` | | Traditional DSA DER |
|
|
694
|
+
*
|
|
695
|
+
* | EC | | `EC PRIVATE KEY` | | RFC 5915 DER |
|
|
696
|
+
*
|
|
697
|
+
* | Ed25519 | | `PRIVATE KEY` | | PKCS #8 DER |
|
|
698
|
+
*
|
|
699
|
+
* **Generated PEM formatting:** PEM output uses CRLF line endings, Base64 lines of at most 64
|
|
700
|
+
* characters, and a final CRLF.
|
|
701
|
+
*
|
|
702
|
+
* **Security note:** The returned private key is not encrypted.
|
|
703
|
+
*
|
|
704
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
705
|
+
* {@link PrivateKey.lastErrorText}.
|
|
706
|
+
*/
|
|
707
|
+
getPkcs1Pem(): string
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Loads a private key from the file at `path`. Despite the historical PKCS #1 name, the method
|
|
711
|
+
* examines the content and accepts supported unencrypted private-key representations.
|
|
712
|
+
*
|
|
713
|
+
* **Content auto-detection:** The method name identifies the expected or traditional use, but
|
|
714
|
+
* Chilkat examines the content and can load other supported unencrypted private-key
|
|
715
|
+
* representations. Encrypted input requires a load method that accepts a password.
|
|
716
|
+
*
|
|
717
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
718
|
+
* fails, this object is left empty.
|
|
719
|
+
*
|
|
720
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
721
|
+
* {@link PrivateKey.lastErrorText}.
|
|
722
|
+
*/
|
|
723
|
+
loadPkcs1File(path: string): void
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Saves the key at `path` using the traditional or preferred unencrypted DER representation.
|
|
727
|
+
*
|
|
728
|
+
* **Historical method name:** RSA is saved as PKCS #1, EC as RFC 5915, DSA in its traditional
|
|
729
|
+
* structure, and Ed25519 as PKCS #8 because no traditional PKCS #1 form exists.
|
|
730
|
+
*
|
|
731
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
732
|
+
* created; the parent directory must already exist.
|
|
733
|
+
*
|
|
734
|
+
* **Security note:** The file contains cleartext private-key material.
|
|
735
|
+
*
|
|
736
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
737
|
+
* {@link PrivateKey.lastErrorText}.
|
|
738
|
+
*/
|
|
739
|
+
savePkcs1File(path: string): void
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Saves the key at `path` as unencrypted PEM, preferring a traditional algorithm-specific
|
|
743
|
+
* representation when one exists. RSA uses `RSA PRIVATE KEY`, DSA uses `DSA PRIVATE KEY`, EC uses
|
|
744
|
+
* `EC PRIVATE KEY`, and Ed25519 uses the PKCS #8 `PRIVATE KEY` form.
|
|
745
|
+
*
|
|
746
|
+
* **Generated PEM formatting:** PEM output uses CRLF line endings, Base64 lines of at most 64
|
|
747
|
+
* characters, and a final CRLF.
|
|
748
|
+
*
|
|
749
|
+
* **File behavior:** An existing destination file is replaced. Parent directories are not
|
|
750
|
+
* created; the parent directory must already exist.
|
|
751
|
+
*
|
|
752
|
+
* **PKCS #8 alternative:** Use {@link PrivateKey.savePkcs8PemFile} to always request the
|
|
753
|
+
* algorithm-independent PKCS #8 `PRIVATE KEY` form.
|
|
754
|
+
*
|
|
755
|
+
* **Security note:** The file is not password-protected.
|
|
756
|
+
*
|
|
757
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
758
|
+
* {@link PrivateKey.lastErrorText}.
|
|
759
|
+
*/
|
|
760
|
+
savePemFile(path: string): void
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Exports the key as a compact JWK (JSON Web Key). Binary integers and byte strings use Base64url
|
|
764
|
+
* without padding.
|
|
765
|
+
*
|
|
766
|
+
* Key typeMembers emitted
|
|
767
|
+
*
|
|
768
|
+
* | RSA | | `kty`, `n`, `e`, `d`, `p`, `q`, `dp`, `dq`, `qi` |
|
|
769
|
+
*
|
|
770
|
+
* | EC | | `kty`, `crv`, `x`, `y`, `d` |
|
|
771
|
+
*
|
|
772
|
+
* | Ed25519 | | `kty`=`OKP`, `crv`=`Ed25519`, `x`, `d`, and `use`=`sig` |
|
|
773
|
+
*
|
|
774
|
+
* **Key material only:** Optional JOSE metadata loaded from a JWK, such as `kid`, `alg`,
|
|
775
|
+
* `key_ops`, or a caller-supplied `use`, is not retained for re-export. The Ed25519 `use`=`sig`
|
|
776
|
+
* member is emitted by Chilkat.
|
|
777
|
+
*
|
|
778
|
+
* **Private output:** The returned JSON contains private key material and must be protected
|
|
779
|
+
* accordingly.
|
|
780
|
+
*
|
|
781
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
782
|
+
* {@link PrivateKey.lastErrorText}.
|
|
783
|
+
*/
|
|
784
|
+
getJwk(): string
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Loads a private key from the JWK JSON in `jsonStr`. Supported private JWK key types are RSA
|
|
788
|
+
* (`kty`=`RSA`), EC (`kty`=`EC`), and Ed25519 (`kty`=`OKP`, `crv`=`Ed25519`). An unsupported
|
|
789
|
+
* `kty` causes the method to fail.
|
|
790
|
+
*
|
|
791
|
+
* **Private key material required:** A JWK containing only public members belongs in a
|
|
792
|
+
* `PublicKey`. This method is for JWKs that contain private key material.
|
|
793
|
+
*
|
|
794
|
+
* **Metadata handling:** Optional JOSE metadata such as `kid`, `use`, `alg`, and `key_ops` may be
|
|
795
|
+
* present but is not retained by `PrivateKey`.
|
|
796
|
+
*
|
|
797
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
798
|
+
* fails, this object is left empty.
|
|
799
|
+
*
|
|
800
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
801
|
+
* {@link PrivateKey.lastErrorText}.
|
|
802
|
+
*/
|
|
803
|
+
loadJwk(jsonStr: string): void
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Computes the RFC 7638 thumbprint of the public portion of the loaded key using the hash
|
|
807
|
+
* algorithm named by `hashAlg`. Supported values include `md5`, `sha1`, `sha256`, `sha384`, and
|
|
808
|
+
* `sha512`. An unsupported name causes the method to fail. The returned digest is
|
|
809
|
+
* Base64url-encoded without padding.
|
|
810
|
+
*
|
|
811
|
+
* **Public-key identity:** The canonical thumbprint input contains only the required public JWK
|
|
812
|
+
* members. Private members and optional metadata such as `kid`, `use`, and `alg` are excluded, so
|
|
813
|
+
* the result matches the thumbprint of the corresponding `PublicKey`.
|
|
814
|
+
*
|
|
815
|
+
* **Recommended hash:** Use `sha256` for normal RFC 7638 interoperability. MD5 and SHA-1 are
|
|
816
|
+
* available for compatibility but should not be chosen for new security-sensitive identifiers.
|
|
817
|
+
*
|
|
818
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
819
|
+
* {@link PrivateKey.lastErrorText}.
|
|
820
|
+
*/
|
|
821
|
+
getJwkThumbprint(hashAlg: string): string
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Loads a private key from the data in `privKeyData` by inspecting its contents. Recognized
|
|
825
|
+
* representations include RSA PKCS #1 DER, traditional DSA and EC DER, PKCS #8 DER, encrypted
|
|
826
|
+
* PKCS #8, PEM, JWK, Chilkat-compatible XML, Microsoft PVK, and supported Ed25519
|
|
827
|
+
* representations. `password` supplies the password when the detected representation is
|
|
828
|
+
* encrypted; otherwise it may be empty.
|
|
829
|
+
*
|
|
830
|
+
* **Text and binary input:** `privKeyData` contains the exact bytes to inspect. Textual PEM, JWK,
|
|
831
|
+
* and XML are detected from those bytes; a filename extension is not involved.
|
|
832
|
+
*
|
|
833
|
+
* **Trailing DER data:** If the input begins with one complete supported DER key followed by
|
|
834
|
+
* extra bytes or another DER object, the first key is loaded and trailing data is ignored.
|
|
835
|
+
*
|
|
836
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
837
|
+
* fails, this object is left empty.
|
|
838
|
+
*
|
|
839
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
840
|
+
* {@link PrivateKey.lastErrorText}.
|
|
841
|
+
*/
|
|
842
|
+
loadAnyFormat(privKeyData: BinData, password: string): void
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Loads an Ed25519 key pair from raw hexadecimal values. `privKey` is the 32-byte Ed25519 private
|
|
846
|
+
* seed. `pubKey` is the 32-byte public key. Each nonempty value must contain exactly 64
|
|
847
|
+
* hexadecimal digits. Uppercase hexadecimal and an optional `0x` prefix are accepted; embedded
|
|
848
|
+
* whitespace is not accepted. `pubKey` may be empty, in which case Chilkat derives the public key
|
|
849
|
+
* from the seed.
|
|
850
|
+
*
|
|
851
|
+
* **Supplied public key is not verified:** When `pubKey` is nonempty, Chilkat stores the supplied
|
|
852
|
+
* public value without checking that it corresponds to `privKey`. Pass an empty `pubKey` when the
|
|
853
|
+
* public key should be derived and guaranteed to match the private seed.
|
|
854
|
+
*
|
|
855
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
856
|
+
* fails, this object is left empty.
|
|
857
|
+
*
|
|
858
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
859
|
+
* {@link PrivateKey.lastErrorText}.
|
|
860
|
+
*/
|
|
861
|
+
loadEd25519(privKey: string, pubKey: string): void
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Loads a private key from the file at `path` by inspecting its contents. Recognized
|
|
865
|
+
* representations include RSA PKCS #1 DER, traditional DSA and EC DER, PKCS #8 DER, encrypted
|
|
866
|
+
* PKCS #8, PEM, JWK, Chilkat-compatible XML, Microsoft PVK, and supported Ed25519
|
|
867
|
+
* representations. `password` supplies the password when needed.
|
|
868
|
+
*
|
|
869
|
+
* **Filename extensions are advisory:** The file content determines the format; a nonstandard or
|
|
870
|
+
* misleading extension does not prevent recognition.
|
|
871
|
+
*
|
|
872
|
+
* **Object state:** A successful load replaces any key already held by this object. If loading
|
|
873
|
+
* fails, this object is left empty.
|
|
874
|
+
*
|
|
875
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
876
|
+
* {@link PrivateKey.lastErrorText}.
|
|
877
|
+
*/
|
|
878
|
+
loadAnyFormatFile(path: string, password: string): void
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Exports the raw private value as lowercase hexadecimal and replaces the contents of the
|
|
882
|
+
* `StringBuilder` in `pubKey` with the corresponding raw public key.
|
|
883
|
+
*
|
|
884
|
+
* Key typeReturned private valuePublic value in `pubKey`
|
|
885
|
+
*
|
|
886
|
+
* | Ed25519 | | The 32-byte seed accepted by {@link PrivateKey.loadEd25519}, as 64 hex
|
|
887
|
+
* characters. | | The 32-byte public key, as 64 hex characters. |
|
|
888
|
+
*
|
|
889
|
+
* | EC | | The private scalar, padded to the curve size as needed. | | The uncompressed point `04
|
|
890
|
+
* || HEX(x) || HEX(y)`. |
|
|
891
|
+
*
|
|
892
|
+
* **Applicable key types:** This method supports Ed25519 and ordinary EC keys. RSA and DSA keys
|
|
893
|
+
* do not have a single simple raw representation and cause the method to fail.
|
|
894
|
+
*
|
|
895
|
+
* **Output on failure:** If the method fails, `pubKey` is cleared.
|
|
896
|
+
*
|
|
897
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
898
|
+
* {@link PrivateKey.lastErrorText}.
|
|
899
|
+
*/
|
|
900
|
+
getRawHex(pubKey: StringBuilder): string
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Uploads or imports the private key to a supported cloud key-management service. `jsonIn`
|
|
904
|
+
* supplies service-specific input parameters as a `JsonObject`, and `jsonOut` receives
|
|
905
|
+
* service-specific result information.
|
|
906
|
+
*
|
|
907
|
+
* **Open-ended interface:** The required JSON members and returned JSON depend on the target
|
|
908
|
+
* service and operation. Follow the corresponding Chilkat example for AWS KMS, Azure Key Vault,
|
|
909
|
+
* or another supported provider rather than assuming one common schema.
|
|
910
|
+
*
|
|
911
|
+
* **Security note:** Cloud import operations may transmit private-key material. Use only the
|
|
912
|
+
* provider endpoint, authentication, and transport settings documented for the intended service.
|
|
913
|
+
*
|
|
914
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
915
|
+
* {@link PrivateKey.uploadToCloudAsync}.
|
|
916
|
+
*
|
|
917
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
918
|
+
* {@link PrivateKey.lastErrorText}.
|
|
919
|
+
*/
|
|
920
|
+
uploadToCloud(jsonIn: JsonObject, jsonOut: JsonObject): void
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Asynchronous form of {@link PrivateKey.uploadToCloud}: the same call on a native worker thread,
|
|
924
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
925
|
+
* except {@link PrivateKey.abort} (which cancels it) and the {@link PrivateKey.onPercentDone} /
|
|
926
|
+
* {@link PrivateKey.onProgressInfo} callbacks, which report progress while it runs.
|
|
927
|
+
*
|
|
928
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
929
|
+
* {@link PrivateKey.lastErrorText}.
|
|
930
|
+
*/
|
|
931
|
+
uploadToCloudAsync(jsonIn: JsonObject, jsonOut: JsonObject): Promise<void>
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Extracts the public portion of the loaded private key and stores an independent copy in the
|
|
935
|
+
* `PublicKey` supplied in `pubKey`. The resulting public key is unaffected if this `PrivateKey`
|
|
936
|
+
* is later reloaded with a different key.
|
|
937
|
+
*
|
|
938
|
+
* **Target state on failure:** If extraction fails, an existing key already held by `pubKey` is
|
|
939
|
+
* preserved.
|
|
940
|
+
*
|
|
941
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
942
|
+
* {@link PrivateKey.lastErrorText}.
|
|
943
|
+
*/
|
|
944
|
+
toPublicKey(pubKey: PublicKey): void
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Exports the key as DER and replaces the contents of the `BinData` in `bd`.
|
|
948
|
+
*
|
|
949
|
+
* `pkcs1``password`Output
|
|
950
|
+
*
|
|
951
|
+
* | `true` | | Ignored for encryption. | | RSA PKCS #1, traditional DSA, RFC 5915 EC, or PKCS #8
|
|
952
|
+
* for Ed25519. |
|
|
953
|
+
*
|
|
954
|
+
* | `false` | | Empty string. | | Unencrypted PKCS #8 DER. |
|
|
955
|
+
*
|
|
956
|
+
* | `false` | | Nonempty password. | | Encrypted PKCS #8 DER using {@link
|
|
957
|
+
* PrivateKey.pkcs8EncryptAlg}. |
|
|
958
|
+
*
|
|
959
|
+
* **Output state:** A successful call replaces any existing `bd` content. If the call fails, `bd`
|
|
960
|
+
* is cleared.
|
|
961
|
+
*
|
|
962
|
+
* **Password behavior:** When `pkcs1` is `true`, `password` does not encrypt the output. To
|
|
963
|
+
* obtain encrypted output, set `pkcs1` to `false` and provide a nonempty `password`.
|
|
964
|
+
*
|
|
965
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
966
|
+
* {@link PrivateKey.lastErrorText}.
|
|
967
|
+
*/
|
|
968
|
+
getPkcsBd(pkcs1: boolean, password: string, bd: BinData): void
|
|
969
|
+
|
|
970
|
+
// ---- Events (ReactNativeGen_DESIGN.md §6) ----
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Called with the percent completed (0..100) while a long-running method runs, when Chilkat
|
|
974
|
+
* can measure progress. Runs on the JavaScript thread, so it is only useful with the
|
|
975
|
+
* `...Async` methods (during a synchronous call the thread is busy and the events arrive
|
|
976
|
+
* after it returns). Assign `undefined` to remove.
|
|
977
|
+
*/
|
|
978
|
+
onPercentDone?: (pctDone: number) => void
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Called with a name/value pair of progress information while a long-running method runs
|
|
982
|
+
* (what is reported depends on the class and method). Runs on the JavaScript thread; see
|
|
983
|
+
* {@link PrivateKey.onPercentDone}. Assign `undefined` to remove.
|
|
984
|
+
*/
|
|
985
|
+
onProgressInfo?: (name: string, value: string) => void
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Requests that the pending `...Async` call on this object stop at its next progress check.
|
|
989
|
+
* The promise then rejects with Chilkat's abort error. Chilkat checks at least every
|
|
990
|
+
* `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
|
|
991
|
+
* for a responsive cancel. Harmless when nothing is pending.
|
|
992
|
+
*/
|
|
993
|
+
abort(): void
|
|
994
|
+
}
|