@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,1243 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
import type { HybridObject } from 'react-native-nitro-modules'
|
|
3
|
+
import type { JsonObject } from './JsonObject.nitro'
|
|
4
|
+
import type { SecureString } from './SecureString.nitro'
|
|
5
|
+
import type { Ssh } from './Ssh.nitro'
|
|
6
|
+
import type { SshKey } from './SshKey.nitro'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Create SSH tunnels for secure local, fixed-destination, dynamic, and multi-hop forwarding.
|
|
10
|
+
*
|
|
11
|
+
* `SshTunnel` creates SSH tunnels for forwarding local
|
|
12
|
+
* client connections through an SSH server to a destination service, such as a
|
|
13
|
+
* database server or other TCP service. It supports fixed destination
|
|
14
|
+
* forwarding, dynamic SOCKS-style port forwarding, password and public-key
|
|
15
|
+
* authentication, keyboard-interactive authentication, proxy connections to the
|
|
16
|
+
* SSH server, multi-hop SSH connections, background accept threads,
|
|
17
|
+
* tunnel/client logging, secure secret lookup, and connection diagnostics.
|
|
18
|
+
*
|
|
19
|
+
* **Local port forwarding**
|
|
20
|
+
*
|
|
21
|
+
* Listen on a local port and forward accepted client connections through an
|
|
22
|
+
* SSH server to a configured destination host and port.
|
|
23
|
+
*
|
|
24
|
+
* **Dynamic forwarding**
|
|
25
|
+
*
|
|
26
|
+
* Enable SOCKS-style dynamic port forwarding when each client connection
|
|
27
|
+
* should choose its own destination through the tunnel.
|
|
28
|
+
*
|
|
29
|
+
* **SSH authentication**
|
|
30
|
+
*
|
|
31
|
+
* Authenticate to the SSH server using passwords, public keys,
|
|
32
|
+
* password-plus-key, secure password lookup, or keyboard-interactive
|
|
33
|
+
* authentication.
|
|
34
|
+
*
|
|
35
|
+
* **Proxy and multi-hop access**
|
|
36
|
+
*
|
|
37
|
+
* Reach the SSH server through HTTP or SOCKS proxies, or build tunnels
|
|
38
|
+
* through an existing SSH connection for multi-hop scenarios.
|
|
39
|
+
*
|
|
40
|
+
* **Accept and manage clients**
|
|
41
|
+
*
|
|
42
|
+
* Start accepting client connections in the background, inspect current
|
|
43
|
+
* state, stop accepting new clients, and disconnect active tunnel clients.
|
|
44
|
+
*
|
|
45
|
+
* **Logging and diagnostics**
|
|
46
|
+
*
|
|
47
|
+
* Use accept logs, tunnel logs, current-state XML, and
|
|
48
|
+
* `LastErrorText` to troubleshoot SSH connection, forwarding,
|
|
49
|
+
* authentication, or client-connection problems.
|
|
50
|
+
*
|
|
51
|
+
* **Common pattern:**
|
|
52
|
+
* Configure the SSH server, authentication method, local listen settings, and
|
|
53
|
+
* destination forwarding options, then call `BeginAccepting` to
|
|
54
|
+
* start the tunnel. Local client applications connect to the tunnel's listen
|
|
55
|
+
* port, and `SshTunnel` forwards the traffic through SSH. Use
|
|
56
|
+
* `SshTunnel` for port forwarding; use
|
|
57
|
+
* `Chilkat.Ssh` for direct SSH sessions, commands, channels, and
|
|
58
|
+
* shell access.
|
|
59
|
+
*
|
|
60
|
+
* **Start with the SSH Tunneling Guide**
|
|
61
|
+
*
|
|
62
|
+
* Learn how static forwarding, dynamic SOCKS forwarding, multi-hop tunneling,
|
|
63
|
+
* proxies, background threads, lifecycle management, and troubleshooting fit
|
|
64
|
+
* together.
|
|
65
|
+
*
|
|
66
|
+
* [Open the SshTunnel Guide](https://www.chilkatsoft.com/sshtunnel_index.asp)
|
|
67
|
+
*
|
|
68
|
+
* A shorter API-focused introduction is also available in the
|
|
69
|
+
* [SshTunnel Class Overview](https://www.chilkatsoft.com/sshtunnel_class_overview.asp).
|
|
70
|
+
*
|
|
71
|
+
* Each `SshTunnel` instance owns a native Chilkat object. It is released when the JavaScript object
|
|
72
|
+
* is
|
|
73
|
+
* garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
|
|
74
|
+
* Create one with `new SshTunnel()`.
|
|
75
|
+
*
|
|
76
|
+
* Methods that can take a while (network, files, compression, key generation) also have an
|
|
77
|
+
* `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
|
|
78
|
+
* rendering. While such a call is pending, every other call on this object throws, except
|
|
79
|
+
* {@link SshTunnel.abort} and assigning {@link SshTunnel.onPercentDone} / {@link
|
|
80
|
+
* SshTunnel.onProgressInfo}.
|
|
81
|
+
*/
|
|
82
|
+
export interface SshTunnel extends HybridObject<{ ios: 'c++', android: 'c++' }> {
|
|
83
|
+
// ---- Properties ----
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Provides HTML-formatted information about the last called method or property. If a method call
|
|
87
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
88
|
+
* available regardless of the method call's success.
|
|
89
|
+
*
|
|
90
|
+
* This property is read-only.
|
|
91
|
+
*/
|
|
92
|
+
readonly lastErrorHtml: string
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Provides plain text information about the last called method or property. If a method call
|
|
96
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
97
|
+
* available regardless of the method call's success.
|
|
98
|
+
*
|
|
99
|
+
* This property is read-only.
|
|
100
|
+
*/
|
|
101
|
+
readonly lastErrorText: string
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Provides XML-formatted information about the last called method or property. If a method call
|
|
105
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
106
|
+
* available regardless of the method call's success.
|
|
107
|
+
*
|
|
108
|
+
* This property is read-only.
|
|
109
|
+
*/
|
|
110
|
+
readonly lastErrorXml: string
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Version of the component/library, such as "10.1.0"
|
|
114
|
+
*
|
|
115
|
+
* This property is read-only.
|
|
116
|
+
*/
|
|
117
|
+
readonly version: string
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* If set to a file path, this property logs the LastErrorText of each Chilkat method or property
|
|
121
|
+
* call to the specified file. This logging helps identify the context and history of Chilkat
|
|
122
|
+
* calls leading up to any crash or hang, aiding in debugging.
|
|
123
|
+
*
|
|
124
|
+
* Enabling the VerboseLogging property provides more detailed information.
|
|
125
|
+
*
|
|
126
|
+
* This property is mainly used for debugging rare instances where a Chilkat method call causes a
|
|
127
|
+
* hang or crash, which should generally not happen.
|
|
128
|
+
*
|
|
129
|
+
* Possible causes of hangs include:
|
|
130
|
+
*
|
|
131
|
+
* - A timeout property set to 0, indicating an infinite timeout.
|
|
132
|
+
*
|
|
133
|
+
* - A hang occurring within an event callback in the application code.
|
|
134
|
+
*
|
|
135
|
+
* - An internal bug in the Chilkat code causing the hang.
|
|
136
|
+
*/
|
|
137
|
+
debugLogFilePath: string
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
|
|
141
|
+
* contain more verbose information. The default value is `false`. Verbose logging should only be
|
|
142
|
+
* used for debugging. The potentially large quantity of logged information may adversely affect
|
|
143
|
+
* peformance.
|
|
144
|
+
*/
|
|
145
|
+
verboseLogging: boolean
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Indicates the success or failure of the most recent method call: `true` means success, `false`
|
|
149
|
+
* means failure. This property remains unchanged by property setters or getters. This method is
|
|
150
|
+
* present to address challenges in checking for null or Nothing returns in certain programming
|
|
151
|
+
* languages. Note: This property does not apply to methods that return integer values or to
|
|
152
|
+
* boolean-returning methods where the boolean does not indicate success or failure.
|
|
153
|
+
*/
|
|
154
|
+
lastMethodSuccess: boolean
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Contains the in-memory activity log for the background listener thread started by
|
|
158
|
+
* {@link SshTunnel.beginAccepting}.
|
|
159
|
+
*
|
|
160
|
+
* The log is populated only when
|
|
161
|
+
* {@link SshTunnel.keepAcceptLog} is
|
|
162
|
+
* `_TRUE_`.
|
|
163
|
+
*/
|
|
164
|
+
acceptLog: string
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Specifies the local file path where activity from the background listener thread
|
|
168
|
+
* is written.
|
|
169
|
+
*
|
|
170
|
+
* This file-based log is separate from the in-memory
|
|
171
|
+
* {@link SshTunnel.acceptLog}.
|
|
172
|
+
*/
|
|
173
|
+
acceptLogPath: string
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Specifies the maximum number of milliseconds allowed for establishing the SSH
|
|
177
|
+
* connection.
|
|
178
|
+
*
|
|
179
|
+
* - The default value is `30000` milliseconds (30 seconds).
|
|
180
|
+
*
|
|
181
|
+
* - A value of `0` disables the connection timeout and allows an unlimited wait.
|
|
182
|
+
*
|
|
183
|
+
* The timeout applies to more than the initial TCP connection. It also covers
|
|
184
|
+
* connection setup performed through an HTTP or SOCKS proxy and waiting for the
|
|
185
|
+
* SSH server identification string after the TCP connection has been established.
|
|
186
|
+
*/
|
|
187
|
+
connectTimeoutMs: number
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Specifies the destination hostname or IP address for fixed-destination port
|
|
191
|
+
* forwarding. This is typically the host running the database server or other TCP
|
|
192
|
+
* service that local clients need to reach.
|
|
193
|
+
*
|
|
194
|
+
* The destination is interpreted from the SSH server's network environment. For
|
|
195
|
+
* example, `localhost` and `127.0.0.1` refer to the SSH
|
|
196
|
+
* server itself, not the computer running the application. Hostname resolution is
|
|
197
|
+
* therefore performed as part of the forwarding request on the SSH-server side.
|
|
198
|
+
*
|
|
199
|
+
* Traffic accepted by the local listener is carried through SSH, forwarded by the
|
|
200
|
+
* SSH server to this destination, and returned through the same tunnel.
|
|
201
|
+
*
|
|
202
|
+
* This property is ignored when
|
|
203
|
+
* {@link SshTunnel.dynamicPortForwarding}
|
|
204
|
+
* is `_TRUE_`. Changing the destination while the listener is
|
|
205
|
+
* running affects new clients only; existing clients remain connected to the
|
|
206
|
+
* destination selected when they were accepted.
|
|
207
|
+
*/
|
|
208
|
+
destHostname: string
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Specifies the TCP port of the destination service used for fixed-destination
|
|
212
|
+
* forwarding, such as the port of a database server.
|
|
213
|
+
*
|
|
214
|
+
* It is used together with
|
|
215
|
+
* {@link SshTunnel.destHostname} and is ignored
|
|
216
|
+
* when
|
|
217
|
+
* {@link SshTunnel.dynamicPortForwarding}
|
|
218
|
+
* is `_TRUE_`.
|
|
219
|
+
*/
|
|
220
|
+
destPort: number
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Controls whether the listener performs fixed-destination or dynamic port
|
|
224
|
+
* forwarding.
|
|
225
|
+
*
|
|
226
|
+
* -
|
|
227
|
+
* When `_FALSE_` (the default), every accepted connection is
|
|
228
|
+
* forwarded to
|
|
229
|
+
* {@link SshTunnel.destHostname} and
|
|
230
|
+
* {@link SshTunnel.destPort}.
|
|
231
|
+
*
|
|
232
|
+
* -
|
|
233
|
+
* When `_TRUE_`, the listener acts as a SOCKS proxy and each
|
|
234
|
+
* inbound client supplies its own destination.
|
|
235
|
+
*
|
|
236
|
+
* The SOCKS version is detected independently from each inbound client handshake;
|
|
237
|
+
* there is no separate inbound SOCKS-version property. SOCKS4 and SOCKS5
|
|
238
|
+
* `CONNECT` requests are supported. SOCKS5 `BIND` and
|
|
239
|
+
* UDP association are not supported.
|
|
240
|
+
*
|
|
241
|
+
* Leave
|
|
242
|
+
* {@link SshTunnel.inboundSocksUsername}
|
|
243
|
+
* empty to allow SOCKS5 clients to use the no-authentication method. Set the
|
|
244
|
+
* inbound username and password to require SOCKS5 username/password
|
|
245
|
+
* authentication. For SOCKS4, only the user ID can be checked because SOCKS4 has
|
|
246
|
+
* no password field.
|
|
247
|
+
*
|
|
248
|
+
* SOCKS4a hostname-form requests are not supported. Use a numeric IPv4 address
|
|
249
|
+
* with SOCKS4, or use SOCKS5 when the client needs to supply a domain name.
|
|
250
|
+
*/
|
|
251
|
+
dynamicPortForwarding: boolean
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Specifies the authentication method to use when the outbound connection to the
|
|
255
|
+
* SSH server passes through an HTTP proxy that requires authentication.
|
|
256
|
+
*
|
|
257
|
+
* Valid values are `Basic` and `NTLM`.
|
|
258
|
+
*
|
|
259
|
+
* If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
|
|
260
|
+
* these HTTP proxy settings are ignored. The proxies are not chained.
|
|
261
|
+
*/
|
|
262
|
+
httpProxyAuthMethod: string
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Specifies the optional Windows domain used for NTLM authentication with the HTTP
|
|
266
|
+
* proxy.
|
|
267
|
+
*
|
|
268
|
+
* This applies only to the outbound proxy connection used to reach the SSH server,
|
|
269
|
+
* and only when
|
|
270
|
+
* {@link SshTunnel.httpProxyAuthMethod}
|
|
271
|
+
* is `NTLM`.
|
|
272
|
+
*
|
|
273
|
+
* If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
|
|
274
|
+
* these HTTP proxy settings are ignored. The proxies are not chained.
|
|
275
|
+
*/
|
|
276
|
+
httpProxyDomain: string
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Specifies the hostname or IPv4 address of the HTTP proxy through which the
|
|
280
|
+
* outbound connection to the SSH server is made.
|
|
281
|
+
*
|
|
282
|
+
* Leave this property empty when no HTTP proxy is required.
|
|
283
|
+
*
|
|
284
|
+
* If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
|
|
285
|
+
* these HTTP proxy settings are ignored. The proxies are not chained.
|
|
286
|
+
*/
|
|
287
|
+
httpProxyHostname: string
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Specifies the password used to authenticate with the HTTP proxy for the outbound
|
|
291
|
+
* connection to the SSH server.
|
|
292
|
+
*
|
|
293
|
+
* If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
|
|
294
|
+
* these HTTP proxy settings are ignored. The proxies are not chained.
|
|
295
|
+
*/
|
|
296
|
+
httpProxyPassword: string
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Specifies the TCP port of the HTTP proxy used for the outbound connection to the
|
|
300
|
+
* SSH server.
|
|
301
|
+
*
|
|
302
|
+
* Common HTTP proxy ports include `8080` and
|
|
303
|
+
* `3128`.
|
|
304
|
+
*
|
|
305
|
+
* If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
|
|
306
|
+
* these HTTP proxy settings are ignored. The proxies are not chained.
|
|
307
|
+
*/
|
|
308
|
+
httpProxyPort: number
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Specifies the username used to authenticate with the HTTP proxy for the outbound
|
|
312
|
+
* connection to the SSH server.
|
|
313
|
+
*
|
|
314
|
+
* If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
|
|
315
|
+
* these HTTP proxy settings are ignored. The proxies are not chained.
|
|
316
|
+
*/
|
|
317
|
+
httpProxyUsername: string
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Specifies a stall timeout, in milliseconds, for tunnel data-transfer operations.
|
|
321
|
+
* The default value is `30000` milliseconds (30 seconds). A value of
|
|
322
|
+
* `0` disables the timeout.
|
|
323
|
+
*
|
|
324
|
+
* This property is not a general inactivity timer for established background
|
|
325
|
+
* tunnel clients. An otherwise idle client, or a client with data queued while an
|
|
326
|
+
* SSH channel is flow-controlled, may remain connected beyond this interval.
|
|
327
|
+
* Applications should not rely on this property to disconnect clients merely
|
|
328
|
+
* because no application data is flowing.
|
|
329
|
+
*/
|
|
330
|
+
idleTimeoutMs: number
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Specifies the password required from inbound SOCKS5 clients when
|
|
334
|
+
* {@link SshTunnel.dynamicPortForwarding}
|
|
335
|
+
* is `_TRUE_`.
|
|
336
|
+
*
|
|
337
|
+
* This property is used together with
|
|
338
|
+
* {@link SshTunnel.inboundSocksUsername}.
|
|
339
|
+
* It does not apply to SOCKS4 because the SOCKS4 protocol has no password field.
|
|
340
|
+
*/
|
|
341
|
+
inboundSocksPassword: string
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Specifies the username required from inbound SOCKS clients when
|
|
345
|
+
* {@link SshTunnel.dynamicPortForwarding}
|
|
346
|
+
* is `_TRUE_`.
|
|
347
|
+
*
|
|
348
|
+
* - For SOCKS5, setting this property enables username/password authentication.
|
|
349
|
+
*
|
|
350
|
+
* - For SOCKS4, the value is compared with the client-supplied user ID.
|
|
351
|
+
*
|
|
352
|
+
* - Leave it empty to require no inbound SOCKS username.
|
|
353
|
+
*/
|
|
354
|
+
inboundSocksUsername: string
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* `_TRUE_` when the local listener thread is running and accepting
|
|
358
|
+
* inbound TCP connections; otherwise `_FALSE_`.
|
|
359
|
+
*
|
|
360
|
+
* This property describes only the local listener. It can remain
|
|
361
|
+
* `_TRUE_` after the SSH connection is lost or after
|
|
362
|
+
* {@link SshTunnel.closeTunnel} is called. In those
|
|
363
|
+
* states a client may connect to the local port even though its traffic cannot be
|
|
364
|
+
* forwarded.
|
|
365
|
+
*
|
|
366
|
+
* Use {@link SshTunnel.isSshConnected} separately
|
|
367
|
+
* when the application also needs to know whether the SSH transport is available.
|
|
368
|
+
*
|
|
369
|
+
* This property is read-only.
|
|
370
|
+
*/
|
|
371
|
+
readonly isAccepting: boolean
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Controls whether activity from the background listener thread is retained in
|
|
375
|
+
* memory.
|
|
376
|
+
*
|
|
377
|
+
* The default value is `_FALSE_`. When enabled, retrieve the log
|
|
378
|
+
* from {@link SshTunnel.acceptLog}.
|
|
379
|
+
*/
|
|
380
|
+
keepAcceptLog: boolean
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Controls whether SSH tunnel-thread activity is retained in memory.
|
|
384
|
+
*
|
|
385
|
+
* The default value is `_FALSE_`. When enabled, retrieve the log
|
|
386
|
+
* from {@link SshTunnel.tunnelLog}.
|
|
387
|
+
*/
|
|
388
|
+
keepTunnelLog: boolean
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Specifies the local IPv4 address to which the tunnel's listening socket is
|
|
392
|
+
* bound.
|
|
393
|
+
*
|
|
394
|
+
* Value
|
|
395
|
+
* Listener exposure
|
|
396
|
+
*
|
|
397
|
+
* | Empty string |
|
|
398
|
+
* | Binds to `0.0.0.0` and accepts connections on all local IPv4 interfaces, subject to firewall
|
|
399
|
+
* rules. |
|
|
400
|
+
*
|
|
401
|
+
* | `127.0.0.1` |
|
|
402
|
+
* | Accepts connections only from the local computer through loopback. |
|
|
403
|
+
*
|
|
404
|
+
* | A specific local LAN address |
|
|
405
|
+
* | Accepts connections through that interface only; loopback is not included automatically. |
|
|
406
|
+
*
|
|
407
|
+
* For a tunnel intended only for local applications, explicitly set this property
|
|
408
|
+
* to `127.0.0.1`. Leaving it empty may expose the listening port to
|
|
409
|
+
* other computers on the network.
|
|
410
|
+
*
|
|
411
|
+
* If the value is malformed or is not assigned to a local interface,
|
|
412
|
+
* {@link SshTunnel.beginAccepting} returns
|
|
413
|
+
* `_FALSE_` and the bind failure is available in
|
|
414
|
+
* `LastErrorText` and the accept log.
|
|
415
|
+
*/
|
|
416
|
+
listenBindIpAddress: string
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Contains the local TCP port used by the listener started by
|
|
420
|
+
* {@link SshTunnel.beginAccepting}.
|
|
421
|
+
*
|
|
422
|
+
* -
|
|
423
|
+
* If `BeginAccepting` succeeds with a nonzero requested port, this
|
|
424
|
+
* property contains that port.
|
|
425
|
+
*
|
|
426
|
+
* -
|
|
427
|
+
* If `BeginAccepting` succeeds with `0`, the operating
|
|
428
|
+
* system chooses an available port and this property contains the allocated port
|
|
429
|
+
* when the method returns.
|
|
430
|
+
*
|
|
431
|
+
* -
|
|
432
|
+
* After a bind failure for an explicitly requested port, this property may still
|
|
433
|
+
* contain the requested port even though
|
|
434
|
+
* {@link SshTunnel.isAccepting} is
|
|
435
|
+
* `_FALSE_`.
|
|
436
|
+
*
|
|
437
|
+
* - The value is initially `0`.
|
|
438
|
+
*
|
|
439
|
+
* This property is read-only.
|
|
440
|
+
*/
|
|
441
|
+
readonly listenPort: number
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Specifies the local IP address to which the outbound socket is bound before
|
|
445
|
+
* connecting to the SSH server.
|
|
446
|
+
*
|
|
447
|
+
* Most applications should leave this property empty. Set it only on a
|
|
448
|
+
* multihomed computer when the SSH connection must originate from a specific
|
|
449
|
+
* local network interface or IP address.
|
|
450
|
+
*/
|
|
451
|
+
outboundBindIpAddress: string
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Specifies the local TCP port to bind before making the outbound connection to
|
|
455
|
+
* the SSH server.
|
|
456
|
+
*
|
|
457
|
+
* The default value is `0`, which allows the operating system to
|
|
458
|
+
* choose an available ephemeral port. Nearly all applications should leave this
|
|
459
|
+
* property unchanged.
|
|
460
|
+
*/
|
|
461
|
+
outboundBindPort: number
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Sets the receive-buffer size for the underlying TCP socket.
|
|
465
|
+
*
|
|
466
|
+
* The default value is `4194304` bytes. Normally this property
|
|
467
|
+
* should remain unchanged. If receive performance is unusually slow, testing a
|
|
468
|
+
* larger value that is a multiple of `4096` may help.
|
|
469
|
+
*/
|
|
470
|
+
soRcvBuf: number
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Sets the send-buffer size for the underlying TCP socket.
|
|
474
|
+
*
|
|
475
|
+
* The default value is `262144` bytes. Normally this property
|
|
476
|
+
* should remain unchanged. If send performance is unusually slow, testing values
|
|
477
|
+
* such as `524288` or `1048576` may help. A
|
|
478
|
+
* multiple of `4096` is recommended.
|
|
479
|
+
*/
|
|
480
|
+
soSndBuf: number
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Specifies the hostname or IPv4 address of the outbound SOCKS4 or SOCKS5 proxy
|
|
484
|
+
* used to reach the SSH server.
|
|
485
|
+
*
|
|
486
|
+
* This property is used only when
|
|
487
|
+
* {@link SshTunnel.socksVersion} is
|
|
488
|
+
* `4` or `5`.
|
|
489
|
+
*/
|
|
490
|
+
socksHostname: string
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Specifies the password for authenticating with an outbound SOCKS5 proxy used to
|
|
494
|
+
* reach the SSH server.
|
|
495
|
+
*
|
|
496
|
+
* SOCKS4 does not support password authentication, so this property does not apply
|
|
497
|
+
* when {@link SshTunnel.socksVersion} is
|
|
498
|
+
* `4`.
|
|
499
|
+
*/
|
|
500
|
+
socksPassword: string
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Specifies the TCP port of the outbound SOCKS4 or SOCKS5 proxy used to reach the
|
|
504
|
+
* SSH server.
|
|
505
|
+
*
|
|
506
|
+
* The default value is `1080`. This property is used only when
|
|
507
|
+
* {@link SshTunnel.socksVersion} is
|
|
508
|
+
* `4` or `5`.
|
|
509
|
+
*/
|
|
510
|
+
socksPort: number
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Specifies the username for the outbound SOCKS4 or SOCKS5 proxy used to reach the
|
|
514
|
+
* SSH server.
|
|
515
|
+
*
|
|
516
|
+
* This property is used only when
|
|
517
|
+
* {@link SshTunnel.socksVersion} is
|
|
518
|
+
* `4` or `5`.
|
|
519
|
+
*/
|
|
520
|
+
socksUsername: string
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Selects whether the outbound connection to the SSH server is made through a
|
|
524
|
+
* SOCKS proxy.
|
|
525
|
+
*
|
|
526
|
+
* Value
|
|
527
|
+
* Behavior
|
|
528
|
+
*
|
|
529
|
+
* | `0` |
|
|
530
|
+
* | Do not use a SOCKS proxy. This is the default. |
|
|
531
|
+
*
|
|
532
|
+
* | `4` |
|
|
533
|
+
* | Connect through a SOCKS4 proxy. |
|
|
534
|
+
*
|
|
535
|
+
* | `5` |
|
|
536
|
+
* | Connect through a SOCKS5 proxy. |
|
|
537
|
+
*
|
|
538
|
+
* When this property is `4` or `5`, the SOCKS proxy
|
|
539
|
+
* settings take precedence over the HTTP proxy settings. The SOCKS and HTTP
|
|
540
|
+
* proxies are not chained.
|
|
541
|
+
*/
|
|
542
|
+
socksVersion: number
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Controls the `TCP_NODELAY` socket option for the underlying TCP
|
|
546
|
+
* connection.
|
|
547
|
+
*
|
|
548
|
+
* The default value is `_FALSE_`. Setting it to
|
|
549
|
+
* `_TRUE_` disables the Nagle algorithm, which can reduce latency
|
|
550
|
+
* when many small amounts of data are sent.
|
|
551
|
+
*/
|
|
552
|
+
tcpNoDelay: boolean
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Contains the in-memory activity log for the SSH tunnel and client-manager
|
|
556
|
+
* threads. The log is populated only when
|
|
557
|
+
* {@link SshTunnel.keepTunnelLog} is
|
|
558
|
+
* `_TRUE_`.
|
|
559
|
+
*
|
|
560
|
+
* Treat this log as sensitive diagnostic data. It can contain hostnames, ports,
|
|
561
|
+
* usernames, proxy details, SOCKS handshake information, and authentication
|
|
562
|
+
* failure values. Do not publish or persist it without reviewing and protecting
|
|
563
|
+
* its contents.
|
|
564
|
+
*/
|
|
565
|
+
tunnelLog: string
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Specifies the local file path where SSH tunnel-thread activity is written.
|
|
569
|
+
*
|
|
570
|
+
* This file-based log is separate from the in-memory
|
|
571
|
+
* {@link SshTunnel.tunnelLog}.
|
|
572
|
+
*/
|
|
573
|
+
tunnelLogPath: string
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Contains the SSH server host-key fingerprint after
|
|
577
|
+
* {@link SshTunnel.connect} or
|
|
578
|
+
* {@link SshTunnel.connectThroughSsh}
|
|
579
|
+
* establishes the SSH connection. The value is available before user
|
|
580
|
+
* authentication.
|
|
581
|
+
*
|
|
582
|
+
* Example:
|
|
583
|
+
* `ssh-ed25519 256 e0:33:b1:81:a5:c6:9a:d2:2e:c9:d3:15:60:ea:cf:4c`
|
|
584
|
+
*
|
|
585
|
+
* Compare this value with a trusted expected fingerprint to verify the identity
|
|
586
|
+
* of the SSH server. For
|
|
587
|
+
* {@link SshTunnel.connectThroughSsh}, the
|
|
588
|
+
* fingerprint is for the final SSH server, not the first-hop server.
|
|
589
|
+
*
|
|
590
|
+
* The value may remain populated after
|
|
591
|
+
* {@link SshTunnel.closeTunnel} or after the
|
|
592
|
+
* connection is lost. Use
|
|
593
|
+
* {@link SshTunnel.isSshConnected} to determine
|
|
594
|
+
* current connection state.
|
|
595
|
+
*
|
|
596
|
+
* This property is read-only.
|
|
597
|
+
*/
|
|
598
|
+
readonly hostKeyFingerprint: string
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Set this property to `_TRUE_` from another thread to request that
|
|
602
|
+
* the currently running foreground operation be aborted. For example, it can
|
|
603
|
+
* interrupt a synchronous
|
|
604
|
+
* {@link SshTunnel.connect} that is waiting for an SSH
|
|
605
|
+
* server response.
|
|
606
|
+
*
|
|
607
|
+
* This property does not stop the background listener or terminate established
|
|
608
|
+
* background tunnel clients.
|
|
609
|
+
*
|
|
610
|
+
* Do not assume the property is automatically reset after an operation is
|
|
611
|
+
* aborted. It may remain `_TRUE_`; set it back to
|
|
612
|
+
* `_FALSE_` before starting another operation.
|
|
613
|
+
*/
|
|
614
|
+
abortCurrent: boolean
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Controls which IP version is preferred when a hostname resolves to both IPv4 and
|
|
618
|
+
* IPv6 addresses.
|
|
619
|
+
*
|
|
620
|
+
* - `_FALSE_` (the default) prefers IPv4.
|
|
621
|
+
*
|
|
622
|
+
* - `_TRUE_` prefers IPv6.
|
|
623
|
+
*/
|
|
624
|
+
preferIpv6: boolean
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Provides optional behavior for uncommon requirements. The default value is an
|
|
628
|
+
* empty string, which is appropriate for most applications.
|
|
629
|
+
*
|
|
630
|
+
* To enable more than one option, provide a comma-separated list of keywords.
|
|
631
|
+
*
|
|
632
|
+
* Keyword
|
|
633
|
+
* Effect
|
|
634
|
+
*
|
|
635
|
+
* | `ForceUserAuthRsaSha1` |
|
|
636
|
+
* | Forces `rsa-sha1` for public-key user authentication. Set this before connecting. Added in
|
|
637
|
+
* v9.5.0.98. |
|
|
638
|
+
*
|
|
639
|
+
* | `NoKeepAliveIgnoreMsg` |
|
|
640
|
+
* | Disables the default SSH `ignore` message sent every 20 seconds to keep an idle connection
|
|
641
|
+
* alive. Added in v9.5.0.76. |
|
|
642
|
+
*
|
|
643
|
+
* | `no-weak-mac-algs` |
|
|
644
|
+
* | Removes `hmac-sha1-96`, `hmac-sha1`, `hmac-md5`, and `hmac-ripemd160` from the offered MAC
|
|
645
|
+
* algorithms. Added in v9.5.0.98. |
|
|
646
|
+
*
|
|
647
|
+
* | `ProtectFromVpn` |
|
|
648
|
+
* | On Android, bypasses an installed or active VPN. Added in v9.5.0.80. |
|
|
649
|
+
*
|
|
650
|
+
* | `+ssh-hmac-etm` |
|
|
651
|
+
* | Re-enables SSH encrypt-then-MAC algorithms that were disabled by default in v9.5.0.97 as part
|
|
652
|
+
* of the Terrapin mitigation. |
|
|
653
|
+
*
|
|
654
|
+
* | `+chacha20-poly1305@openssh.com` |
|
|
655
|
+
* | Re-enables `chacha20-poly1305@openssh.com`, which was removed from the default offer in
|
|
656
|
+
* v9.5.0.97 as part of the Terrapin mitigation. |
|
|
657
|
+
*/
|
|
658
|
+
uncommonOptions: string
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Specifies the SSH client-identification string sent when connecting to the SSH
|
|
662
|
+
* server.
|
|
663
|
+
*
|
|
664
|
+
* Starting in Chilkat v9.5.0.99, the default is
|
|
665
|
+
* `SSH-2.0-Chilkat_` followed by the Chilkat version number, such
|
|
666
|
+
* as `SSH-2.0-Chilkat_9.5.0.99`.
|
|
667
|
+
*
|
|
668
|
+
* The identifier should begin with `SSH-2.0-`. Some SSH servers
|
|
669
|
+
* disconnect clients that send an invalid identification string.
|
|
670
|
+
*/
|
|
671
|
+
clientIdentifier: string
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Specifies the local directory where a separate log file is created for each
|
|
675
|
+
* tunnel client.
|
|
676
|
+
*
|
|
677
|
+
* When this property is not empty, files are named using the pattern
|
|
678
|
+
* `tunnel_client_log_{random_id}.txt`.
|
|
679
|
+
*/
|
|
680
|
+
clientLogDir: string
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Enables automatic resolution of credentials from secure storage provided by the
|
|
684
|
+
* operating system.
|
|
685
|
+
*
|
|
686
|
+
* When set to `_TRUE_`, supported password properties and methods
|
|
687
|
+
* may receive a **secret specification string** beginning with
|
|
688
|
+
* `!!` instead of a literal password. Chilkat resolves the secret
|
|
689
|
+
* from:
|
|
690
|
+
*
|
|
691
|
+
* - Windows Credential Manager on Windows.
|
|
692
|
+
*
|
|
693
|
+
* - Apple Keychain on macOS.
|
|
694
|
+
*
|
|
695
|
+
* The specification format is:
|
|
696
|
+
* `!![appName|]service[|domain]|username`
|
|
697
|
+
*
|
|
698
|
+
* This applies to
|
|
699
|
+
* {@link SshTunnel.httpProxyPassword},
|
|
700
|
+
* {@link SshTunnel.socksPassword},
|
|
701
|
+
* {@link SshTunnel.authenticatePw}, and
|
|
702
|
+
* {@link SshTunnel.authenticatePwPk}.
|
|
703
|
+
*
|
|
704
|
+
* The default value is `_FALSE_`.
|
|
705
|
+
*/
|
|
706
|
+
enableSecrets: boolean
|
|
707
|
+
|
|
708
|
+
// ---- Methods ----
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Authenticates with the SSH server using public-key authentication.
|
|
712
|
+
*
|
|
713
|
+
* The public key corresponding to `privateKey` must already be
|
|
714
|
+
* installed for `username` on the SSH server.
|
|
715
|
+
*
|
|
716
|
+
* Call {@link SshTunnel.connect} or
|
|
717
|
+
* {@link SshTunnel.connectThroughSsh}
|
|
718
|
+
* before calling this method.
|
|
719
|
+
*
|
|
720
|
+
* When requesting support for an authentication failure, include the complete
|
|
721
|
+
* `LastErrorText`.
|
|
722
|
+
*
|
|
723
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
724
|
+
* {@link SshTunnel.authenticatePkAsync}.
|
|
725
|
+
*
|
|
726
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
727
|
+
* {@link SshTunnel.lastErrorText}.
|
|
728
|
+
*/
|
|
729
|
+
authenticatePk(username: string, privateKey: SshKey): void
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Asynchronous form of {@link SshTunnel.authenticatePk}: the same call on a native worker thread,
|
|
733
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
734
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
735
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
736
|
+
*
|
|
737
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
738
|
+
* {@link SshTunnel.lastErrorText}.
|
|
739
|
+
*/
|
|
740
|
+
authenticatePkAsync(username: string, privateKey: SshKey): Promise<void>
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Authenticates with the SSH server using `login` and
|
|
744
|
+
* `password`.
|
|
745
|
+
*
|
|
746
|
+
* Establish the SSH connection first by calling
|
|
747
|
+
* {@link SshTunnel.connect} or
|
|
748
|
+
* {@link SshTunnel.connectThroughSsh}.
|
|
749
|
+
* After authentication succeeds, call
|
|
750
|
+
* {@link SshTunnel.beginAccepting} to begin
|
|
751
|
+
* accepting tunnel clients.
|
|
752
|
+
*
|
|
753
|
+
* - A rejected username or password does not close the SSH connection; the application may
|
|
754
|
+
* correct the credentials and call this method again.
|
|
755
|
+
*
|
|
756
|
+
* - Calling this method again after authentication has already succeeded returns `_FALSE_` with
|
|
757
|
+
* an “Already authenticated” error.
|
|
758
|
+
*
|
|
759
|
+
* When requesting support for an authentication failure, include the complete
|
|
760
|
+
* `LastErrorText` captured immediately after the failed call.
|
|
761
|
+
*
|
|
762
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
763
|
+
* {@link SshTunnel.authenticatePwAsync}.
|
|
764
|
+
*
|
|
765
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
766
|
+
* {@link SshTunnel.lastErrorText}.
|
|
767
|
+
*/
|
|
768
|
+
authenticatePw(login: string, password: string): void
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Asynchronous form of {@link SshTunnel.authenticatePw}: the same call on a native worker thread,
|
|
772
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
773
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
774
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
775
|
+
*
|
|
776
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
777
|
+
* {@link SshTunnel.lastErrorText}.
|
|
778
|
+
*/
|
|
779
|
+
authenticatePwAsync(login: string, password: string): Promise<void>
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Authenticates with an SSH server that requires both a password and a private key.
|
|
783
|
+
*
|
|
784
|
+
* The public key corresponding to `privateKey` must already be
|
|
785
|
+
* installed for `username` on the SSH server. Most SSH servers
|
|
786
|
+
* require either password authentication or public-key authentication rather than
|
|
787
|
+
* both.
|
|
788
|
+
*
|
|
789
|
+
* When requesting support for an authentication failure, include the complete
|
|
790
|
+
* `LastErrorText`.
|
|
791
|
+
*
|
|
792
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
793
|
+
* {@link SshTunnel.authenticatePwPkAsync}.
|
|
794
|
+
*
|
|
795
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
796
|
+
* {@link SshTunnel.lastErrorText}.
|
|
797
|
+
*/
|
|
798
|
+
authenticatePwPk(username: string, password: string, privateKey: SshKey): void
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Asynchronous form of {@link SshTunnel.authenticatePwPk}: the same call on a native worker
|
|
802
|
+
* thread,
|
|
803
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
804
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
805
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
806
|
+
*
|
|
807
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
808
|
+
* {@link SshTunnel.lastErrorText}.
|
|
809
|
+
*/
|
|
810
|
+
authenticatePwPkAsync(username: string, password: string, privateKey: SshKey): Promise<void>
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Creates and starts the local listener on `listenPort`.
|
|
814
|
+
*
|
|
815
|
+
* The SSH connection must already have been established. Although the listener
|
|
816
|
+
* can be started before user authentication, clients accepted in that state
|
|
817
|
+
* cannot be forwarded. The recommended sequence is to connect, authenticate, and
|
|
818
|
+
* then call this method.
|
|
819
|
+
*
|
|
820
|
+
* - The requested port must not already be in use on the selected local interface.
|
|
821
|
+
*
|
|
822
|
+
* - Pass `0` to let the operating system choose an available port, then read {@link
|
|
823
|
+
* SshTunnel.listenPort}.
|
|
824
|
+
*
|
|
825
|
+
* - Calling this method while the listener is already running returns `_FALSE_`.
|
|
826
|
+
*
|
|
827
|
+
* The method waits for the initial bind-and-listen result. It returns
|
|
828
|
+
* `_FALSE_` for errors such as an occupied port, a malformed bind
|
|
829
|
+
* address, or an address that is not assigned to the local computer. Details are
|
|
830
|
+
* available immediately in `LastErrorText` and, when enabled, the
|
|
831
|
+
* accept log.
|
|
832
|
+
*
|
|
833
|
+
* A successful return means the listener was bound and started. No additional
|
|
834
|
+
* fixed delay is required merely to discover an initial bind failure.
|
|
835
|
+
*
|
|
836
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
837
|
+
* {@link SshTunnel.beginAcceptingAsync}.
|
|
838
|
+
*
|
|
839
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
840
|
+
* {@link SshTunnel.lastErrorText}.
|
|
841
|
+
*/
|
|
842
|
+
beginAccepting(listenPort: number): void
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Asynchronous form of {@link SshTunnel.beginAccepting}: the same call on a native worker thread,
|
|
846
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
847
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
848
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
849
|
+
*
|
|
850
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
851
|
+
* {@link SshTunnel.lastErrorText}.
|
|
852
|
+
*/
|
|
853
|
+
beginAcceptingAsync(listenPort: number): Promise<void>
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Disconnects active tunnel clients and stops the tunnel-manager thread.
|
|
857
|
+
*
|
|
858
|
+
* When `waitForThreads` is `_TRUE_`, the method waits
|
|
859
|
+
* for the client and tunnel-manager threads to exit. It returns
|
|
860
|
+
* `_FALSE_` if a worker thread does not stop; capture
|
|
861
|
+
* `LastErrorText` immediately for details.
|
|
862
|
+
*
|
|
863
|
+
* This method does not stop the local listener and does not disconnect or reset
|
|
864
|
+
* the underlying SSH transport. Call
|
|
865
|
+
* {@link SshTunnel.stopAccepting} separately to
|
|
866
|
+
* stop accepting local TCP connections. After this method returns, the listener
|
|
867
|
+
* may still accept a local connection even though the connection cannot be
|
|
868
|
+
* forwarded.
|
|
869
|
+
*
|
|
870
|
+
* Calling this method more than once is allowed. However, it does not reset the
|
|
871
|
+
* object for a new call to
|
|
872
|
+
* {@link SshTunnel.connect}. Use a new
|
|
873
|
+
* `SshTunnel` object when connecting to a different SSH server.
|
|
874
|
+
*
|
|
875
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
876
|
+
* {@link SshTunnel.lastErrorText}.
|
|
877
|
+
*/
|
|
878
|
+
closeTunnel(waitForThreads: boolean): void
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Establishes the SSH connection that will carry tunneled traffic. This method
|
|
882
|
+
* performs the TCP or proxy connection, the SSH protocol handshake, and host-key
|
|
883
|
+
* negotiation, but it does not authenticate the SSH user.
|
|
884
|
+
*
|
|
885
|
+
* After connecting, verify
|
|
886
|
+
* {@link SshTunnel.hostKeyFingerprint}, then
|
|
887
|
+
* authenticate by calling one of the `Authenticate*` methods. Finally,
|
|
888
|
+
* call {@link SshTunnel.beginAccepting} to start
|
|
889
|
+
* the local listener.
|
|
890
|
+
*
|
|
891
|
+
* The host-key fingerprint is available immediately after this method succeeds,
|
|
892
|
+
* before user authentication. Calling `Connect` again while an SSH
|
|
893
|
+
* tunnel already exists returns `_FALSE_`.
|
|
894
|
+
*
|
|
895
|
+
* Chilkat sends an SSH `ignore` message every 20 seconds to help
|
|
896
|
+
* keep an unused SSH connection alive. To disable this behavior, add
|
|
897
|
+
* `NoKeepAliveIgnoreMsg` to
|
|
898
|
+
* {@link SshTunnel.uncommonOptions} before
|
|
899
|
+
* connecting.
|
|
900
|
+
*
|
|
901
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
902
|
+
* {@link SshTunnel.connectAsync}.
|
|
903
|
+
*
|
|
904
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
905
|
+
* {@link SshTunnel.lastErrorText}.
|
|
906
|
+
*/
|
|
907
|
+
connect(hostname: string, port: number): void
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Asynchronous form of {@link SshTunnel.connect}: the same call on a native worker thread,
|
|
911
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
912
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
913
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
914
|
+
*
|
|
915
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
916
|
+
* {@link SshTunnel.lastErrorText}.
|
|
917
|
+
*/
|
|
918
|
+
connectAsync(hostname: string, port: number): Promise<void>
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Disconnects all active tunnel clients while leaving the local listener and SSH
|
|
922
|
+
* connection available.
|
|
923
|
+
*
|
|
924
|
+
* When `waitForThreads` is `_TRUE_`, the method waits
|
|
925
|
+
* for the current client threads to exit before returning. The listener continues
|
|
926
|
+
* accepting new clients, and newly accepted clients can be forwarded normally.
|
|
927
|
+
*
|
|
928
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
929
|
+
* {@link SshTunnel.lastErrorText}.
|
|
930
|
+
*/
|
|
931
|
+
disconnectAllClients(waitForThreads: boolean): void
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Stops the local listener so that no new client connections are accepted.
|
|
935
|
+
* Existing forwarded clients remain connected and continue exchanging data.
|
|
936
|
+
*
|
|
937
|
+
* - When `waitForThread` is `_TRUE_`, the method waits for the listener thread to exit before
|
|
938
|
+
* returning.
|
|
939
|
+
*
|
|
940
|
+
* - When it is `_FALSE_`, shutdown is asynchronous and {@link SshTunnel.isAccepting} may remain
|
|
941
|
+
* `_TRUE_` briefly after the method returns.
|
|
942
|
+
*
|
|
943
|
+
* Call {@link SshTunnel.beginAccepting} again to
|
|
944
|
+
* resume accepting connections. The listener can be restarted on the same port
|
|
945
|
+
* after the previous listener has stopped.
|
|
946
|
+
*
|
|
947
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
948
|
+
* {@link SshTunnel.lastErrorText}.
|
|
949
|
+
*/
|
|
950
|
+
stopAccepting(waitForThread: boolean): void
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Connects to a second SSH server through the existing connected and authenticated
|
|
954
|
+
* `Ssh` object supplied in `ssh`.
|
|
955
|
+
*
|
|
956
|
+
* ```
|
|
957
|
+
* application -> first SSH server -> second SSH server
|
|
958
|
+
* ```
|
|
959
|
+
*
|
|
960
|
+
* `hostname` and `port` identify the second SSH server.
|
|
961
|
+
* After this method succeeds, call an authentication method on this
|
|
962
|
+
* `SshTunnel` object to authenticate with the second server.
|
|
963
|
+
*
|
|
964
|
+
* The supplied `Ssh` object is borrowed, not copied. It must remain
|
|
965
|
+
* alive, connected, and authenticated for as long as this tunnel is used. If the
|
|
966
|
+
* first-hop object is disconnected, existing forwarded clients stop working and
|
|
967
|
+
* new local connections cannot be forwarded. The local listener may nevertheless
|
|
968
|
+
* remain active until explicitly stopped.
|
|
969
|
+
*
|
|
970
|
+
* {@link SshTunnel.hostKeyFingerprint} reports
|
|
971
|
+
* the fingerprint of the second SSH server. After the connection is established,
|
|
972
|
+
* fixed forwarding destinations such as `127.0.0.1` are interpreted
|
|
973
|
+
* from the second server's network environment.
|
|
974
|
+
*
|
|
975
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
976
|
+
* {@link SshTunnel.connectThroughSshAsync}.
|
|
977
|
+
*
|
|
978
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
979
|
+
* {@link SshTunnel.lastErrorText}.
|
|
980
|
+
*/
|
|
981
|
+
connectThroughSsh(ssh: Ssh, hostname: string, port: number): void
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Asynchronous form of {@link SshTunnel.connectThroughSsh}: the same call on a native worker
|
|
985
|
+
* thread,
|
|
986
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
987
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
988
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
989
|
+
*
|
|
990
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
991
|
+
* {@link SshTunnel.lastErrorText}.
|
|
992
|
+
*/
|
|
993
|
+
connectThroughSshAsync(ssh: Ssh, hostname: string, port: number): Promise<void>
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* Returns `_TRUE_` when the SSH transport used by this tunnel is
|
|
997
|
+
* connected; otherwise returns `_FALSE_`.
|
|
998
|
+
*
|
|
999
|
+
* This is independent of the local listener state. The listener may still be
|
|
1000
|
+
* accepting local TCP connections when this method returns `_FALSE_`,
|
|
1001
|
+
* but those connections cannot be forwarded until a usable SSH transport exists.
|
|
1002
|
+
*
|
|
1003
|
+
* For a tunnel created with
|
|
1004
|
+
* {@link SshTunnel.connectThroughSsh}, this
|
|
1005
|
+
* method becomes `_FALSE_` when the borrowed first-hop
|
|
1006
|
+
* `Ssh` connection is disconnected.
|
|
1007
|
+
*/
|
|
1008
|
+
isSshConnected(): boolean
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Returns an XML snapshot describing the tunnel manager, SSH channels, and current
|
|
1012
|
+
* tunnel clients. The returned data is intended for diagnostics and monitoring.
|
|
1013
|
+
*
|
|
1014
|
+
* A typical result has the following structure:
|
|
1015
|
+
*
|
|
1016
|
+
* ```
|
|
1017
|
+
* _LT_CurrentState_GT_
|
|
1018
|
+
* _LT_tunnelManager rcvByteCount="433" sndByteCount="34"
|
|
1019
|
+
* threadRunning="1" dynamicPortForwarding="0"
|
|
1020
|
+
* staticDestHost="localhost" staticDestPort="18080"_GT_
|
|
1021
|
+
* _LT_openChannels count="1"_GT_
|
|
1022
|
+
* _LT_channel num="101" channelType="direct-tcpip"
|
|
1023
|
+
* clientWinSize="2096927" serverWinSize="2097127" /_GT_
|
|
1024
|
+
* _LT_/openChannels_GT_
|
|
1025
|
+
* _LT_closedChannels count="0" /_GT_
|
|
1026
|
+
* _LT_/tunnelManager_GT_
|
|
1027
|
+
* _LT_clients count="1"_GT_
|
|
1028
|
+
* _LT_client destIp="localhost" destPort="18080"
|
|
1029
|
+
* sshChannelNum="101" threadRunning="1"
|
|
1030
|
+
* rcvByteCount="25" sndByteCount="225" /_GT_
|
|
1031
|
+
* _LT_/clients_GT_
|
|
1032
|
+
* _LT_/CurrentState_GT_
|
|
1033
|
+
* ```
|
|
1034
|
+
*
|
|
1035
|
+
* The exact child elements can vary with state. For example, channel collections
|
|
1036
|
+
* may be empty, and some transport details may be omitted before the tunnel is
|
|
1037
|
+
* started or after it stops.
|
|
1038
|
+
*
|
|
1039
|
+
* Section
|
|
1040
|
+
* Information
|
|
1041
|
+
*
|
|
1042
|
+
* | `tunnelManager` |
|
|
1043
|
+
* | Aggregate byte counts, worker-thread state, forwarding mode, and configured fixed
|
|
1044
|
+
* destination. |
|
|
1045
|
+
*
|
|
1046
|
+
* | `openChannels` and `closedChannels` |
|
|
1047
|
+
* | SSH channel numbers, close/EOF flags, packet sizes, and flow-control window sizes. |
|
|
1048
|
+
*
|
|
1049
|
+
* | `clients` |
|
|
1050
|
+
* | Per-client destination, SSH channel number, worker state, age/activity counters, pending-data
|
|
1051
|
+
* flags, and byte counts. |
|
|
1052
|
+
*
|
|
1053
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1054
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1055
|
+
*/
|
|
1056
|
+
getCurrentState(): string
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Performs the same password authentication as
|
|
1060
|
+
* {@link SshTunnel.authenticatePw}, but receives
|
|
1061
|
+
* the login and password in `SecureString` objects.
|
|
1062
|
+
*
|
|
1063
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1064
|
+
* {@link SshTunnel.authenticateSecPwAsync}.
|
|
1065
|
+
*
|
|
1066
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1067
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1068
|
+
*/
|
|
1069
|
+
authenticateSecPw(login: SecureString, password: SecureString): void
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Asynchronous form of {@link SshTunnel.authenticateSecPw}: the same call on a native worker
|
|
1073
|
+
* thread,
|
|
1074
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1075
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
1076
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
1077
|
+
*
|
|
1078
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1079
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1080
|
+
*/
|
|
1081
|
+
authenticateSecPwAsync(login: SecureString, password: SecureString): Promise<void>
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Performs the same combined password-and-private-key authentication as
|
|
1085
|
+
* {@link SshTunnel.authenticatePwPk}, but
|
|
1086
|
+
* receives the username and password in `SecureString` objects.
|
|
1087
|
+
*
|
|
1088
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1089
|
+
* {@link SshTunnel.authenticateSecPwPkAsync}.
|
|
1090
|
+
*
|
|
1091
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1092
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1093
|
+
*/
|
|
1094
|
+
authenticateSecPwPk(username: SecureString, password: SecureString, privateKey: SshKey): void
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Asynchronous form of {@link SshTunnel.authenticateSecPwPk}: the same call on a native worker
|
|
1098
|
+
* thread,
|
|
1099
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1100
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
1101
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
1102
|
+
*
|
|
1103
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1104
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1105
|
+
*/
|
|
1106
|
+
authenticateSecPwPkAsync(username: SecureString, password: SecureString, privateKey: SshKey): Promise<void>
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Begins keyboard-interactive authentication for `login`.
|
|
1110
|
+
*
|
|
1111
|
+
* When the server requests one or more responses, the returned XML contains the
|
|
1112
|
+
* request name, instructions, and prompts:
|
|
1113
|
+
*
|
|
1114
|
+
* ```
|
|
1115
|
+
* _LT_infoRequest numPrompts="N"_GT_
|
|
1116
|
+
* _LT_name_GT_name text_LT_/name_GT_
|
|
1117
|
+
* _LT_instruction_GT_instruction text_LT_/instruction_GT_
|
|
1118
|
+
* _LT_prompt1 echo="1_or_0"_GT_prompt text_LT_/prompt1_GT_
|
|
1119
|
+
* ...
|
|
1120
|
+
* _LT_promptN echo="1_or_0"_GT_prompt text_LT_/promptN_GT_
|
|
1121
|
+
* _LT_/infoRequest_GT_
|
|
1122
|
+
* ```
|
|
1123
|
+
*
|
|
1124
|
+
* The `echo` attribute indicates whether the response should be
|
|
1125
|
+
* displayed while entered.
|
|
1126
|
+
*
|
|
1127
|
+
* If authentication immediately succeeds or fails without requiring a response,
|
|
1128
|
+
* the returned XML has one of these forms:
|
|
1129
|
+
*
|
|
1130
|
+
* ```
|
|
1131
|
+
* _LT_success_GT_success message_LT_/success_GT_
|
|
1132
|
+
*
|
|
1133
|
+
* _LT_error_GT_error message_LT_/error_GT_
|
|
1134
|
+
* ```
|
|
1135
|
+
*
|
|
1136
|
+
* Pass the requested response or responses to
|
|
1137
|
+
* {@link SshTunnel.continueKeyboardAuth}.
|
|
1138
|
+
*
|
|
1139
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1140
|
+
* {@link SshTunnel.startKeyboardAuthAsync}.
|
|
1141
|
+
*
|
|
1142
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1143
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1144
|
+
*/
|
|
1145
|
+
startKeyboardAuth(login: string): string
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Asynchronous form of {@link SshTunnel.startKeyboardAuth}: the same call on a native worker
|
|
1149
|
+
* thread,
|
|
1150
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1151
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
1152
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
1153
|
+
*
|
|
1154
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1155
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1156
|
+
*/
|
|
1157
|
+
startKeyboardAuthAsync(login: string): Promise<string>
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Continues a keyboard-interactive authentication exchange started by
|
|
1161
|
+
* {@link SshTunnel.startKeyboardAuth}.
|
|
1162
|
+
*
|
|
1163
|
+
* If the server requested one response, pass that value directly in
|
|
1164
|
+
* `response`. If it requested multiple responses, pass XML in the
|
|
1165
|
+
* following form:
|
|
1166
|
+
*
|
|
1167
|
+
* ```
|
|
1168
|
+
* _LT_response_GT_
|
|
1169
|
+
* _LT_response1_GT_response to first prompt_LT_/response1_GT_
|
|
1170
|
+
* _LT_response2_GT_response to second prompt_LT_/response2_GT_
|
|
1171
|
+
* ...
|
|
1172
|
+
* _LT_responseN_GT_response to Nth prompt_LT_/responseN_GT_
|
|
1173
|
+
* _LT_/response_GT_
|
|
1174
|
+
* ```
|
|
1175
|
+
*
|
|
1176
|
+
* When authentication completes, the returned XML indicates success or failure:
|
|
1177
|
+
*
|
|
1178
|
+
* ```
|
|
1179
|
+
* _LT_success_GT_success message_LT_/success_GT_
|
|
1180
|
+
*
|
|
1181
|
+
* _LT_error_GT_error message_LT_/error_GT_
|
|
1182
|
+
* ```
|
|
1183
|
+
*
|
|
1184
|
+
* If another challenge is required, the method returns another
|
|
1185
|
+
* `infoRequest` XML document containing the next set of prompts.
|
|
1186
|
+
*
|
|
1187
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1188
|
+
* {@link SshTunnel.continueKeyboardAuthAsync}.
|
|
1189
|
+
*
|
|
1190
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1191
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1192
|
+
*/
|
|
1193
|
+
continueKeyboardAuth(response: string): string
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Asynchronous form of {@link SshTunnel.continueKeyboardAuth}: the same call on a native worker
|
|
1197
|
+
* thread,
|
|
1198
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1199
|
+
* except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
|
|
1200
|
+
* {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
|
|
1201
|
+
*
|
|
1202
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1203
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1204
|
+
*/
|
|
1205
|
+
continueKeyboardAuthAsync(response: string): Promise<string>
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Restricts the SSH connection to the algorithms specified in
|
|
1209
|
+
* `json`.
|
|
1210
|
+
*
|
|
1211
|
+
* This allows an application to define the exact algorithm set that may be used
|
|
1212
|
+
* during SSH negotiation.
|
|
1213
|
+
*
|
|
1214
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1215
|
+
* {@link SshTunnel.lastErrorText}.
|
|
1216
|
+
*/
|
|
1217
|
+
setAllowedAlgorithms(json: JsonObject): void
|
|
1218
|
+
|
|
1219
|
+
// ---- Events (ReactNativeGen_DESIGN.md §6) ----
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Called with the percent completed (0..100) while a long-running method runs, when Chilkat
|
|
1223
|
+
* can measure progress. Runs on the JavaScript thread, so it is only useful with the
|
|
1224
|
+
* `...Async` methods (during a synchronous call the thread is busy and the events arrive
|
|
1225
|
+
* after it returns). Assign `undefined` to remove.
|
|
1226
|
+
*/
|
|
1227
|
+
onPercentDone?: (pctDone: number) => void
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Called with a name/value pair of progress information while a long-running method runs
|
|
1231
|
+
* (what is reported depends on the class and method). Runs on the JavaScript thread; see
|
|
1232
|
+
* {@link SshTunnel.onPercentDone}. Assign `undefined` to remove.
|
|
1233
|
+
*/
|
|
1234
|
+
onProgressInfo?: (name: string, value: string) => void
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Requests that the pending `...Async` call on this object stop at its next progress check.
|
|
1238
|
+
* The promise then rejects with Chilkat's abort error. Chilkat checks at least every
|
|
1239
|
+
* `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
|
|
1240
|
+
* for a responsive cancel. Harmless when nothing is pending.
|
|
1241
|
+
*/
|
|
1242
|
+
abort(): void
|
|
1243
|
+
}
|