@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,978 @@
|
|
|
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 { Cert } from './Cert.nitro'
|
|
5
|
+
import type { Http } from './Http.nitro'
|
|
6
|
+
import type { JsonObject } from './JsonObject.nitro'
|
|
7
|
+
import type { PrivateKey } from './PrivateKey.nitro'
|
|
8
|
+
import type { StringBuilder } from './StringBuilder.nitro'
|
|
9
|
+
import type { Xml } from './Xml.nitro'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Create XML Digital Signatures with precise control over references, transforms, keys, and
|
|
13
|
+
* placement.
|
|
14
|
+
*
|
|
15
|
+
* `XmlDSigGen` creates XML Digital Signatures for
|
|
16
|
+
* same-document XML, external XML, text, binary, file, and
|
|
17
|
+
* `Object`-based references. It supports enveloped, enveloping, and
|
|
18
|
+
* detached-style signing workflows; X.509 certificate `KeyInfo`;
|
|
19
|
+
* custom `KeyInfo` XML; RSA, DSA, and ECDSA private keys; HMAC
|
|
20
|
+
* signatures; canonicalization options; reference transforms; signature
|
|
21
|
+
* insertion placement; timestamp authority settings; and compatibility options
|
|
22
|
+
* for systems with strict or unusual XML signature requirements.
|
|
23
|
+
*
|
|
24
|
+
* **Same-document signatures**
|
|
25
|
+
*
|
|
26
|
+
* Sign XML already present in the document, including enveloped signatures
|
|
27
|
+
* where the signature is inserted into the signed XML.
|
|
28
|
+
*
|
|
29
|
+
* **External references**
|
|
30
|
+
*
|
|
31
|
+
* Add references to external XML, text, binary data, files, or custom
|
|
32
|
+
* application-provided content.
|
|
33
|
+
*
|
|
34
|
+
* **Object and enveloping signatures**
|
|
35
|
+
*
|
|
36
|
+
* Build signatures that include signed data inside XML
|
|
37
|
+
* `Object` elements or produce enveloping signature structures.
|
|
38
|
+
*
|
|
39
|
+
* **Keys and KeyInfo**
|
|
40
|
+
*
|
|
41
|
+
* Sign with private keys or HMAC secrets and include certificate-based,
|
|
42
|
+
* public-key, or fully custom `KeyInfo` XML.
|
|
43
|
+
*
|
|
44
|
+
* **Canonicalization and transforms**
|
|
45
|
+
*
|
|
46
|
+
* Configure canonicalization, digest algorithms, signature algorithms, and
|
|
47
|
+
* reference transforms required by the receiving system.
|
|
48
|
+
*
|
|
49
|
+
* **Placement and compatibility**
|
|
50
|
+
*
|
|
51
|
+
* Control where the signature is inserted and enable compatibility
|
|
52
|
+
* behaviors for XML signature profiles with special formatting rules.
|
|
53
|
+
*
|
|
54
|
+
* **Common pattern:**
|
|
55
|
+
* Configure the signature algorithm, canonicalization method, signing key or
|
|
56
|
+
* certificate, and `KeyInfo` style; add one or more references with
|
|
57
|
+
* the required transforms and digest methods; choose where the signature should
|
|
58
|
+
* be placed; then generate the signed XML. Use
|
|
59
|
+
* `XmlDSigGen` to create signatures and
|
|
60
|
+
* `Chilkat.XmlDSig` to inspect or verify them.
|
|
61
|
+
*
|
|
62
|
+
* For an extended overview, see
|
|
63
|
+
* [XmlDSigGen Class Overview](https://www.chilkatsoft.com/xmldsiggen_class_overview.asp).
|
|
64
|
+
*
|
|
65
|
+
* Each `XmlDSigGen` instance owns a native Chilkat object. It is released when the JavaScript
|
|
66
|
+
* object is
|
|
67
|
+
* garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
|
|
68
|
+
* Create one with `new XmlDSigGen()`.
|
|
69
|
+
*
|
|
70
|
+
* Methods that can take a while (network, files, compression, key generation) also have an
|
|
71
|
+
* `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
|
|
72
|
+
* rendering. While such a call is pending, every other call on this object throws, except
|
|
73
|
+
* {@link XmlDSigGen.abort} and assigning {@link XmlDSigGen.onPercentDone} / {@link
|
|
74
|
+
* XmlDSigGen.onProgressInfo}.
|
|
75
|
+
*/
|
|
76
|
+
export interface XmlDSigGen extends HybridObject<{ ios: 'c++', android: 'c++' }> {
|
|
77
|
+
// ---- Properties ----
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Provides HTML-formatted information about the last called method or property. If a method call
|
|
81
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
82
|
+
* available regardless of the method call's success.
|
|
83
|
+
*
|
|
84
|
+
* This property is read-only.
|
|
85
|
+
*/
|
|
86
|
+
readonly lastErrorHtml: string
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Provides plain text information about the last called method or property. If a method call
|
|
90
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
91
|
+
* available regardless of the method call's success.
|
|
92
|
+
*
|
|
93
|
+
* This property is read-only.
|
|
94
|
+
*/
|
|
95
|
+
readonly lastErrorText: string
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Provides XML-formatted information about the last called method or property. If a method call
|
|
99
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
100
|
+
* available regardless of the method call's success.
|
|
101
|
+
*
|
|
102
|
+
* This property is read-only.
|
|
103
|
+
*/
|
|
104
|
+
readonly lastErrorXml: string
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Version of the component/library, such as "10.1.0"
|
|
108
|
+
*
|
|
109
|
+
* This property is read-only.
|
|
110
|
+
*/
|
|
111
|
+
readonly version: string
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* If set to a file path, this property logs the LastErrorText of each Chilkat method or property
|
|
115
|
+
* call to the specified file. This logging helps identify the context and history of Chilkat
|
|
116
|
+
* calls leading up to any crash or hang, aiding in debugging.
|
|
117
|
+
*
|
|
118
|
+
* Enabling the VerboseLogging property provides more detailed information.
|
|
119
|
+
*
|
|
120
|
+
* This property is mainly used for debugging rare instances where a Chilkat method call causes a
|
|
121
|
+
* hang or crash, which should generally not happen.
|
|
122
|
+
*
|
|
123
|
+
* Possible causes of hangs include:
|
|
124
|
+
*
|
|
125
|
+
* - A timeout property set to 0, indicating an infinite timeout.
|
|
126
|
+
*
|
|
127
|
+
* - A hang occurring within an event callback in the application code.
|
|
128
|
+
*
|
|
129
|
+
* - An internal bug in the Chilkat code causing the hang.
|
|
130
|
+
*/
|
|
131
|
+
debugLogFilePath: string
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
|
|
135
|
+
* contain more verbose information. The default value is `false`. Verbose logging should only be
|
|
136
|
+
* used for debugging. The potentially large quantity of logged information may adversely affect
|
|
137
|
+
* peformance.
|
|
138
|
+
*/
|
|
139
|
+
verboseLogging: boolean
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Indicates the success or failure of the most recent method call: `true` means success, `false`
|
|
143
|
+
* means failure. This property remains unchanged by property setters or getters. This method is
|
|
144
|
+
* present to address challenges in checking for null or Nothing returns in certain programming
|
|
145
|
+
* languages. Note: This property does not apply to methods that return integer values or to
|
|
146
|
+
* boolean-returning methods where the boolean does not indicate success or failure.
|
|
147
|
+
*/
|
|
148
|
+
lastMethodSuccess: boolean
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Indicates where the Signature is to be located within the XML that is signed. This is a path to
|
|
152
|
+
* the position in the XML where the Signature will be inserted, using Chilkat path syntax (using
|
|
153
|
+
* vertical bar characters to delimit tag names. If the Signature element is to be the root of XML
|
|
154
|
+
* document, then set this property equal to the empty string.
|
|
155
|
+
*
|
|
156
|
+
* For example, if we have the following SOAP XML and wish to insert the Signature at the
|
|
157
|
+
* indicated location, then the SigLocation property should be set to
|
|
158
|
+
* `SOAP-ENV:Envelope|SOAP-ENV:Header|wsse:Security`.
|
|
159
|
+
*
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
*
|
|
163
|
+
* ** The XML Signature is to be inserted here **
|
|
164
|
+
*
|
|
165
|
+
*
|
|
166
|
+
* ...
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
sigLocation: string
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The namespace URI of the Signature that is to be created. The default value is
|
|
173
|
+
* `http://www.w3.org/2000/09/xmldsig#`. For example, if the SigNamespacePrefix equals `ds` and
|
|
174
|
+
* this property remains at the default value, then the generated Signature element will be:
|
|
175
|
+
*
|
|
176
|
+
* ```
|
|
177
|
+
* ...
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
sigNamespaceUri: string
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The namespace prefix of the Signature that is to be created. The default value is `ds`. Set
|
|
184
|
+
* this property to the empty string to omit a Signature namespace URI and prefix. For example,
|
|
185
|
+
* given the default values of SigNamespaceUri and SigNamespacePrefix, the generated Signature
|
|
186
|
+
* element will be:
|
|
187
|
+
*
|
|
188
|
+
* ```
|
|
189
|
+
* ...
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
sigNamespacePrefix: string
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Selects the signature algorithm to be used when using an RSA key to sign. The default value is
|
|
196
|
+
* `PKCS1-v1_5`. This can be set to `RSASSA-PSS` (or simply `pss`) to use the RSASSA-PSS signature
|
|
197
|
+
* scheme.
|
|
198
|
+
*
|
|
199
|
+
* **Note:** This property only applies when signing with an RSA private key. It does not apply
|
|
200
|
+
* for ECC or DSA private keys.
|
|
201
|
+
*/
|
|
202
|
+
signingAlg: string
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The canonicalization method to be used for the SignedInfo when creating the XML signature.
|
|
206
|
+
*
|
|
207
|
+
* - `C14N` -- for Inclusive Canonical XML (without comments)
|
|
208
|
+
*
|
|
209
|
+
* - `C14N_11` -- for Inclusive Canonical XML 1.1 (without comments)
|
|
210
|
+
*
|
|
211
|
+
* - `EXCL_C14N` -- for Exclusive Canonical XML (without comments)
|
|
212
|
+
*
|
|
213
|
+
* - `C14N_WithComments` -- for Inclusive Canonical XML (with comments)
|
|
214
|
+
*
|
|
215
|
+
* - `C14N_11_WithComments` -- for Inclusive Canonical XML 1.1 (with comments)
|
|
216
|
+
*
|
|
217
|
+
* - `EXCL_C14N_WithComments` -- for Exclusive Canonical XML (with comments)
|
|
218
|
+
*
|
|
219
|
+
* - **Note:** The WithComments options are available in Chilkat v9.5.0.71 and later.
|
|
220
|
+
*
|
|
221
|
+
* The default value is `EXCL_C14N`.
|
|
222
|
+
*/
|
|
223
|
+
signedInfoCanonAlg: string
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The inclusive namespace prefix list to be added, if any, when the SignedInfoCanonAlg is equal
|
|
227
|
+
* to `EXCL_C14N`. The defautl value is the empty string. If namespaces are listed, they are
|
|
228
|
+
* separated by space characters.
|
|
229
|
+
*
|
|
230
|
+
* If, for example, this property is set to `wsse SOAP-ENV`, then the CanonicalizationMethod part
|
|
231
|
+
* of the SignedInfo that is generated would look like this:
|
|
232
|
+
*
|
|
233
|
+
* ```
|
|
234
|
+
*
|
|
235
|
+
*
|
|
236
|
+
*
|
|
237
|
+
* ...
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
signedInfoPrefixList: string
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The digest method to be used for signing the SignedInfo part of the Signature. Possible values
|
|
244
|
+
* are `sha1`, `sha256`, `sha384`, and `sha512`. The default is `sha256`.
|
|
245
|
+
*/
|
|
246
|
+
signedInfoDigestMethod: string
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Specifies the type of information that will be included in the optional KeyInfo element of the
|
|
250
|
+
* Signature. Possible values are:
|
|
251
|
+
*
|
|
252
|
+
* - None
|
|
253
|
+
*
|
|
254
|
+
* - KeyName
|
|
255
|
+
*
|
|
256
|
+
* - KeyValue
|
|
257
|
+
*
|
|
258
|
+
* - X509Data
|
|
259
|
+
*
|
|
260
|
+
* - X509Data+KeyValue
|
|
261
|
+
*
|
|
262
|
+
* - Custom
|
|
263
|
+
*
|
|
264
|
+
* The default value is `KeyValue`. The `X509Data+KeyValue` option was added in Chilkat v9.5.0.73.
|
|
265
|
+
*
|
|
266
|
+
* If **None**, then no KeyInfo element is added to the Signature when generated.
|
|
267
|
+
*
|
|
268
|
+
* If **KeyValue**, then the KeyInfo will contain the public key (RSA, DSA, or ECDSA).
|
|
269
|
+
*
|
|
270
|
+
* If **X509Data**, then the KeyInfo will contain information about an X.509 certificate as
|
|
271
|
+
* specified by the X509Type property.
|
|
272
|
+
*
|
|
273
|
+
* If **Custom**, then the KeyInfo will contain the custom XML contained in the CustomKeyInfoXml
|
|
274
|
+
* property.
|
|
275
|
+
*/
|
|
276
|
+
keyInfoType: string
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Specifies the kind of X.509 certificate information is provided in the KeyInfo element when the
|
|
280
|
+
* KeyInfoType equals `X509Data`. Possible values are:
|
|
281
|
+
*
|
|
282
|
+
* - Certificate
|
|
283
|
+
*
|
|
284
|
+
* - CertChain
|
|
285
|
+
*
|
|
286
|
+
* - IssuerSerial
|
|
287
|
+
*
|
|
288
|
+
* - SubjectName
|
|
289
|
+
*
|
|
290
|
+
* - SKI
|
|
291
|
+
*
|
|
292
|
+
* The default value is `Certificate`.
|
|
293
|
+
*
|
|
294
|
+
* **Note:** This property can be set to a comma-separated list of the keywords above. For
|
|
295
|
+
* example, If set to `SubjectName,Certificate`, then both the X509SubjectName and X509Certificate
|
|
296
|
+
* parts will be added to the KeyInfo.
|
|
297
|
+
*
|
|
298
|
+
* If **Certificate**, then the KeyInfo will contain the base64 encoded X.509v3 certificate.
|
|
299
|
+
*
|
|
300
|
+
* If **CertChain**, then the KeyInfo will contain the base64 encoded X.509v3 certificate as well
|
|
301
|
+
* as any certificates available in the chain of authentication to the root cert.
|
|
302
|
+
*
|
|
303
|
+
* If **IssuerSerial**, then the KeyInfo will contain the X.509 issuer's distinguished name and
|
|
304
|
+
* the signing certificate's serial number.
|
|
305
|
+
*
|
|
306
|
+
* If **SubjectName**, then the KeyInfo will contain the X.509 subject distinguished name.
|
|
307
|
+
*
|
|
308
|
+
* If **SKI**, then the KeyInfo will contain the base64 encoded value of the cert's X.509
|
|
309
|
+
* SubjectKeyIdentifier extension.
|
|
310
|
+
*/
|
|
311
|
+
x509Type: string
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Specifies custom XML to be inserted in the KeyInfo element of the Signature. A common use is to
|
|
315
|
+
* provide a **wsse:SecurityTokenReference** fragment of XML.
|
|
316
|
+
*/
|
|
317
|
+
customKeyInfoXml: string
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* An option Id attribute value for the Signature element. The default value is the empty string,
|
|
321
|
+
* which generates a Signature element with no Id attribute. For example:
|
|
322
|
+
*
|
|
323
|
+
* ```
|
|
324
|
+
*
|
|
325
|
+
* ```
|
|
326
|
+
*
|
|
327
|
+
* If this property is set to "abc123", then the Signature element would be generated like this:
|
|
328
|
+
*
|
|
329
|
+
* ```
|
|
330
|
+
*
|
|
331
|
+
* ```
|
|
332
|
+
*/
|
|
333
|
+
sigId: string
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Specifies the KeyName to be inserted in the KeyInfo element of the Signature if the KeyInfoType
|
|
337
|
+
* equals `KeyName`.
|
|
338
|
+
*/
|
|
339
|
+
keyInfoKeyName: string
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The namespace prefix to use for InclusiveNamespaces elements. The default value is `ec`. Set
|
|
343
|
+
* this property to the empty string to omit an InclusiveNamespaces prefix. For example, given the
|
|
344
|
+
* default values of IncNamespaceUri and IncNamespacePrefix, generated InclusiveNamespaces
|
|
345
|
+
* elements will appear like this:
|
|
346
|
+
*
|
|
347
|
+
* ```
|
|
348
|
+
* ...
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
incNamespacePrefix: string
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The namespace URI for any InclusiveNamespaces elements that are created. The default value is
|
|
355
|
+
* `http://www.w3.org/2001/10/xml-exc-c14n#`. For example, if the IncNamespacePrefix equals `ec`
|
|
356
|
+
* and this property remains at the default value, then the generated Signature element will be:
|
|
357
|
+
*
|
|
358
|
+
* ```
|
|
359
|
+
* ...
|
|
360
|
+
* ```
|
|
361
|
+
*/
|
|
362
|
+
incNamespaceUri: string
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* A comma-separated list of keywords to specify special behaviors to work around potential
|
|
366
|
+
* oddities or special requirements needed for providing signatures to particular systems. This is
|
|
367
|
+
* an open-ended property where new behaviors can be implemented depending on the needs
|
|
368
|
+
* encountered by Chilkat customers. The possible behaviors are listed below.
|
|
369
|
+
*
|
|
370
|
+
* - **AttributeSortingBug** (introduced in v9.5.0.79) Tells Chilkat to produce a signature that
|
|
371
|
+
* duplicates a common XML canonicalization attribute sorting bug found in some XML signature
|
|
372
|
+
* implementations (such as JPK VAT signed XML documents for Polish government, i.e. mf.gov.pl,
|
|
373
|
+
* csioz.gov.pl, crd.gov.pl, etc). See [XML Signature Canonicalization
|
|
374
|
+
* Bug](http://cknotes.com/xml-signature-canonicalization-bug-in-widely-used-software/) for
|
|
375
|
+
* details.
|
|
376
|
+
*
|
|
377
|
+
* - **Base64CrEntity** Produce multi-line base64 for XML elements such as SignatureValue and
|
|
378
|
+
* X509Certificate, with each line ending in a CR hex entity, except for the last line. For
|
|
379
|
+
* example:
|
|
380
|
+
*
|
|
381
|
+
* ```
|
|
382
|
+
* <ds:X509Certificate>MIIFNTCCBB2gAwIBAgIQHozVnBl1lTsusAh26u6WZTANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UE
|
|
383
|
+
* BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
|
|
384
|
+
* A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPTA7BgNVBAMTNENPTU9ETyBSU0EgQ2xpZW50IEF1dGhl
|
|
385
|
+
* ...
|
|
386
|
+
* sp3FRlACVeb1Qlytr4vgc5FlCqn0rMtjlF4=
|
|
387
|
+
* </ds:X509Certificate>
|
|
388
|
+
* ```
|
|
389
|
+
*
|
|
390
|
+
* - **Base64Cr13Entity** Produce multi-line base64 for XML elements such as SignatureValue and
|
|
391
|
+
* X509Certificate, with each line ending in a CR decimal entity, except for the last line. For
|
|
392
|
+
* example:
|
|
393
|
+
*
|
|
394
|
+
* ```
|
|
395
|
+
* <ds:X509Certificate>MIIFNTCCBB2gAwIBAgIQHozVnBl1lTsusAh26u6WZTANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UE
|
|
396
|
+
* BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
|
|
397
|
+
* A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPTA7BgNVBAMTNENPTU9ETyBSU0EgQ2xpZW50IEF1dGhl
|
|
398
|
+
* ...
|
|
399
|
+
* sp3FRlACVeb1Qlytr4vgc5FlCqn0rMtjlF4=
|
|
400
|
+
* </ds:X509Certificate>
|
|
401
|
+
* ```
|
|
402
|
+
*
|
|
403
|
+
* - **Base64Multiline** Produce multi-line base64 for XML elements such as SignatureValue and
|
|
404
|
+
* X509Certificate. For example:
|
|
405
|
+
*
|
|
406
|
+
* ```
|
|
407
|
+
* <ds:X509Certificate>MIIFNTCCBB2gAwIBAgIQHozVnBl1lTsusAh26u6WZTANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UE
|
|
408
|
+
* BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
|
|
409
|
+
* A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPTA7BgNVBAMTNENPTU9ETyBSU0EgQ2xpZW50IEF1dGhl
|
|
410
|
+
* ...
|
|
411
|
+
* sp3FRlACVeb1Qlytr4vgc5FlCqn0rMtjlF4=
|
|
412
|
+
* </ds:X509Certificate>
|
|
413
|
+
* ```
|
|
414
|
+
*
|
|
415
|
+
* - **ForceAddEnvelopedSignatureTransform** The `_LT_Transform
|
|
416
|
+
* Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />` is normally only added
|
|
417
|
+
* when the Signature is contained within the XML fragment that is signed. The meaning of this
|
|
418
|
+
* tranformation is to tell the verifier to remove the Signature from the data prior to
|
|
419
|
+
* canonicalizing. If the Signature is not contained within the XML fragment that was signed,
|
|
420
|
+
* then the signature was not **enveloped**. There would be no need to remove the Signature
|
|
421
|
+
* because the Signature is not contained in the XML fragment being verified. **However..** some
|
|
422
|
+
* brain-dead verifiying systems require this Transform to be present regardless of whether it
|
|
423
|
+
* makes sense. This behavior will cause Chilkat to add the Transform regardless.
|
|
424
|
+
*
|
|
425
|
+
* - **NoEnvelopedSignatureTransform** (introduced in v9.5.0.82) Prevents the `_LT_Transform
|
|
426
|
+
* Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />` from being added in all
|
|
427
|
+
* cases.
|
|
428
|
+
*
|
|
429
|
+
* - **EnvelopedTransformFirst** (introduced in v9.5.0.87) Forces the
|
|
430
|
+
* <http://www.w3.org/2000/09/xmldsig#enveloped-signature> to be listed first when there are
|
|
431
|
+
* multiple transforms for a reference.
|
|
432
|
+
*
|
|
433
|
+
* - **ebXmlTransform** (introduced in v9.5.0.73) Causes the following tranform to be added for
|
|
434
|
+
* ebXml messages:
|
|
435
|
+
* _LT_Transform Algorithm=`http://www.w3.org/TR/1999/REC-xpath-19991116`\>
|
|
436
|
+
* _LT_XPath
|
|
437
|
+
* xmlns:SOAP-ENV=`http://schemas.xmlsoap.org/soap/envelope/`\>not(ancestor-or-self::node()\[@SOAP-ENV:actor=`urn:oasis:names:tc:ebxml-msg:actor:nextMSH`\]
|
|
438
|
+
* |
|
|
439
|
+
* ancestor-or-self::node()\[@SOAP-ENV:actor=`http://schemas.xmlsoap.org/soap/actor/next`\])_LT_/XPath\>
|
|
440
|
+
* _LT_/Transform\>
|
|
441
|
+
*
|
|
442
|
+
* - **TransformSignatureXPath** (introduced in v9.5.0.75) Causes the following tranform to be
|
|
443
|
+
* added:
|
|
444
|
+
* _LT_ds:Transform Algorithm=`http://www.w3.org/TR/1999/REC-xpath-19991116`_GT_
|
|
445
|
+
* _LT_ds:XPath_GT_not(ancestor-or-self::ds:Signature)_LT_/ds:XPath_GT_
|
|
446
|
+
* _LT_/ds:Transform_GT_
|
|
447
|
+
*
|
|
448
|
+
* - **CompactSignedXml** (introduced in v9.5.0.73) The passed-in XML to be signed is first
|
|
449
|
+
* reformatted to a compact representation by removing all CR's, LF's, and unnecessary
|
|
450
|
+
* whitespace so that the XML to be signed is on a single line. The resulting XML (with
|
|
451
|
+
* signature) is also entirely contained on a single line. (If an XML declarator is present,
|
|
452
|
+
* then it will remain on it's own line.)
|
|
453
|
+
*
|
|
454
|
+
* - **IndentedSignature** (introduced in v9.5.0.73) Causes the XML Signature to be produced on
|
|
455
|
+
* multiple lines with indentation for easier human readability. The CompactSignedXml behavior
|
|
456
|
+
* takes precedence over this behavior.
|
|
457
|
+
*
|
|
458
|
+
* - **FullLocalSigningTime** (introduced in v9.5.0.76) Causes the signing time to be formatted
|
|
459
|
+
* like this: 2017-05-20T19:16:05.649+01:00.nnn, where the `.nnn` is added to indicate
|
|
460
|
+
* milliseconds.
|
|
461
|
+
*
|
|
462
|
+
* - **LocalSigningTime** (introduced in v9.5.0.76) Causes the signing time to be formatted using
|
|
463
|
+
* a local time (with a timezone offset such as `+01:00` rather than `Z` to signify GMT).
|
|
464
|
+
*
|
|
465
|
+
* - **NoReplaceSigningTime** Don't replace the \<SigningTime\> content with a timestamp of the
|
|
466
|
+
* current date/time. Instead keep the current value provided by the application.
|
|
467
|
+
*
|
|
468
|
+
* - **NoTimestampBias** Exclude the timestamp bias from the generated \<SigningTime\>
|
|
469
|
+
*
|
|
470
|
+
* - **DnReverseOrder** (introduced in v9.5.0.77) Causes DN's (certificate Distinguished Names) to
|
|
471
|
+
* be written in reverse order. Reverse order leads with `CN`, such as `CN=..., O=..., OU=...,
|
|
472
|
+
* C=...`, whereas normal order ends with `CN`, such as `C=..., OU=..., O=..., CN=...`
|
|
473
|
+
*
|
|
474
|
+
* - **IssuerSerialHex** (introduced in v9.5.0.77) Causes the issuer serial number located in
|
|
475
|
+
* SignedProperties.SignedSignatureProperties.SigningCertificate to be emitted as uppercase hex
|
|
476
|
+
* instead of decimal. (Also, when signing XML for e-dokumenty.mf.gov.pl, Chilkat automatically
|
|
477
|
+
* recognizes it and uses IssuerSerialHex.)
|
|
478
|
+
*
|
|
479
|
+
* - **IssuerSerialHexLower** (introduced in v9.5.0.77) Causes the issuer serial number located in
|
|
480
|
+
* SignedProperties.SignedSignatureProperties.SigningCertificate to be emitted as lowercase hex
|
|
481
|
+
* instead of decimal.
|
|
482
|
+
*
|
|
483
|
+
* - **SigningTimeAdjust-_LT_numSeconds_GT_** (introduced in v9.5.0.80) When Chilkat automatically
|
|
484
|
+
* fills in the value for a SigningTime, it will use the current system date/time. This behavior
|
|
485
|
+
* can be used to adjust the generate time to numSeconds in the past. For example:
|
|
486
|
+
* `SigningTimeAdjust-60` will generate a signing time 60 seconds prior to the current time.
|
|
487
|
+
*
|
|
488
|
+
* - **SigningTimeAdjust+_LT_numSeconds_GT_** (introduced in v9.5.0.88) When Chilkat automatically
|
|
489
|
+
* fills in the value for a SigningTime, it will use the current system date/time. This behavior
|
|
490
|
+
* can be used to adjust the generate time to numSeconds in the future. For example:
|
|
491
|
+
* `SigningTimeAdjust+60` will generate a signing time 60 seconds past the current time.
|
|
492
|
+
*
|
|
493
|
+
* - **UBLDocumentSignatures** Causes an XPath `ancestor-or-self` Transform to be added for the
|
|
494
|
+
* 1st reference. See the example at [UBL XAdES Enveloped
|
|
495
|
+
* Signature](https://www.example-code.com/csharp/ubl_xades_enveloped_signature.asp)
|
|
496
|
+
*
|
|
497
|
+
* - **SignExistingSignatures** This keyword can be used when applying a 2nd or greater signature
|
|
498
|
+
* and the new signature will encompass one or more existing signatures. The default behavior is
|
|
499
|
+
* that existing signatures are not included in the canonicalization/digest before signing.
|
|
500
|
+
* Adding this keyword will cause existing signatures to be included in the
|
|
501
|
+
* canonicalization/digest.
|
|
502
|
+
*/
|
|
503
|
+
behaviors: string
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* If set, causes the generated KeyInfo element to include an Id attribute with this value. For
|
|
507
|
+
* example:
|
|
508
|
+
*
|
|
509
|
+
* ```
|
|
510
|
+
* ...
|
|
511
|
+
* _LT_ds:KeyInfo Id="KeyInfo"_GT_
|
|
512
|
+
* _LT_ds:X509Data_GT_
|
|
513
|
+
* _LT_ds:X509SubjectName_GT_CERTIFICADO DE ABC_LT_/ds:X509SubjectName_GT_
|
|
514
|
+
* _LT_ds:X509Certificate_GT_MIIITTCC....fIsIZeZOeQ=_LT_/ds:X509Certificate_GT_
|
|
515
|
+
* _LT_/ds:X509Data_GT_
|
|
516
|
+
* _LT_/ds:KeyInfo_GT_
|
|
517
|
+
* ...
|
|
518
|
+
* ```
|
|
519
|
+
*/
|
|
520
|
+
keyInfoId: string
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Optional Id attribute to be added to the SignedInfo element. The default value is the empty
|
|
524
|
+
* string, meaning that the SignedInfo is generated without an Id attribute.
|
|
525
|
+
*/
|
|
526
|
+
signedInfoId: string
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* An option Id attribute value for the SignatureValue element. The default value is the empty
|
|
530
|
+
* string, which generates a SignatureValue element with no Id attribute. For example:
|
|
531
|
+
*
|
|
532
|
+
* ```
|
|
533
|
+
* _LT_ds:SignatureValue_GT_
|
|
534
|
+
* ```
|
|
535
|
+
*
|
|
536
|
+
* If this property is set to "value-id-7d4a", then the Signature element would be generated like
|
|
537
|
+
* this:
|
|
538
|
+
*
|
|
539
|
+
* ```
|
|
540
|
+
* _LT_ds:SignatureValue Id="value-id-7d4a"_GT_
|
|
541
|
+
* ```
|
|
542
|
+
*/
|
|
543
|
+
sigValueId: string
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Modifies the placement of the signature at the location specified by SigLocation. Possible
|
|
547
|
+
* values are:
|
|
548
|
+
*
|
|
549
|
+
* - 0: Insert the Signature as the last child of the element at SigLocation. This is the default.
|
|
550
|
+
*
|
|
551
|
+
* - 1: Insert the Signature as a sibling directly after the element at SigLocation.
|
|
552
|
+
*
|
|
553
|
+
* - 2: Insert the Signature as a sibling directly before the element at SigLocation.
|
|
554
|
+
*/
|
|
555
|
+
sigLocationMod: number
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* This is a catch-all property to be used for uncommon needs. This property defaults to the empty
|
|
559
|
+
* string, and should typically remain empty.
|
|
560
|
+
*/
|
|
561
|
+
uncommonOptions: string
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Insert the signature at the Nth occurrence of the {@link XmlDSigGen.sigLocation}. The default
|
|
565
|
+
* is `0`, which is to insert (according to {@link XmlDSigGen.sigLocationMod} ) at the 1st
|
|
566
|
+
* occurrence. (An index value of 1 is for the 2nd occurrence, and so on.)
|
|
567
|
+
*/
|
|
568
|
+
sigLocationIdx: number
|
|
569
|
+
|
|
570
|
+
// ---- Methods ----
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Specifies an enveloped Reference to be added to the Signature when generated. An enveloped
|
|
574
|
+
* Reference is for data contained within the Signature. (The Signature is to be an enveloping
|
|
575
|
+
* signature, and the data is enveloped by the Signature.)
|
|
576
|
+
*
|
|
577
|
+
* The `id` is the value of the **Id** attribute of the **Object** element that is to be contained
|
|
578
|
+
* within the generated Signature. The `content` is the text content to be contained in the
|
|
579
|
+
* Object. Binary data can be signed by passing the bytes in `content` in an encoded format (such
|
|
580
|
+
* as base64 or hex).
|
|
581
|
+
*
|
|
582
|
+
* The `digestMethod` is the digest method and can be one of the following: `sha1`, `sha256`,
|
|
583
|
+
* `sha384`, `sha512`, `ripemd160`, or `md5`.
|
|
584
|
+
*
|
|
585
|
+
* The `canonMethod` is the canonicalization method, and can be one of the following.
|
|
586
|
+
*
|
|
587
|
+
* - `C14N` -- for Inclusive Canonical XML (without comments)
|
|
588
|
+
*
|
|
589
|
+
* - `C14N_11` -- for Inclusive Canonical XML 1.1 (without comments)
|
|
590
|
+
*
|
|
591
|
+
* - `EXCL_C14N` -- for Exclusive Canonical XML (without comments)
|
|
592
|
+
*
|
|
593
|
+
* - `C14N_WithComments` -- for Inclusive Canonical XML (with comments)
|
|
594
|
+
*
|
|
595
|
+
* - `C14N_11_WithComments` -- for Inclusive Canonical XML 1.1 (with comments)
|
|
596
|
+
*
|
|
597
|
+
* - `EXCL_C14N_WithComments` -- for Exclusive Canonical XML (with comments)
|
|
598
|
+
*
|
|
599
|
+
* - **Note:** The WithComments options are available in Chilkat v9.5.0.71 and later.
|
|
600
|
+
*
|
|
601
|
+
* The `refType` is optional and is usually not needed. Set this to the empty string unless it is
|
|
602
|
+
* desired to add a Type attribute to the Reference that is advisory only.
|
|
603
|
+
*
|
|
604
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
605
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
606
|
+
*/
|
|
607
|
+
addEnvelopedRef(id: string, content: StringBuilder, digestMethod: string, canonMethod: string, refType: string): void
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Specifies a same document Reference to be added to the Signature when generated. A same
|
|
611
|
+
* document Reference can be the entire XML document, or a fragment of the XML document.
|
|
612
|
+
*
|
|
613
|
+
* The `id` can be the empty string to sign the entire XML document, or it can be the fragment
|
|
614
|
+
* identifier to sign a portion of the XML document.
|
|
615
|
+
*
|
|
616
|
+
* The `digestMethod` is the digest method and can be one of the following: `sha1`, `sha256`,
|
|
617
|
+
* `sha384`, `sha512`, `ripemd160`, or `md5`.
|
|
618
|
+
*
|
|
619
|
+
* The `canonMethod` is the canonicalization method, and can be one of the following:
|
|
620
|
+
*
|
|
621
|
+
* - `C14N` -- for Inclusive Canonical XML (without comments)
|
|
622
|
+
*
|
|
623
|
+
* - `C14N_11` -- for Inclusive Canonical XML 1.1 (without comments)
|
|
624
|
+
*
|
|
625
|
+
* - `EXCL_C14N` -- for Exclusive Canonical XML (without comments)
|
|
626
|
+
*
|
|
627
|
+
* - `C14N_WithComments` -- for Inclusive Canonical XML (with comments)
|
|
628
|
+
*
|
|
629
|
+
* - `C14N_11_WithComments` -- for Inclusive Canonical XML 1.1 (with comments)
|
|
630
|
+
*
|
|
631
|
+
* - `EXCL_C14N_WithComments` -- for Exclusive Canonical XML (with comments)
|
|
632
|
+
*
|
|
633
|
+
* - -- An empty string indicates that no transformation should be included / applied for this
|
|
634
|
+
* reference.
|
|
635
|
+
*
|
|
636
|
+
* - **Note:** The WithComments options are available in Chilkat v9.5.0.71 and later.
|
|
637
|
+
*
|
|
638
|
+
* - **Note:** The empty-string canonMethod is available in Chilkat v9.5.0.75 and later.
|
|
639
|
+
*
|
|
640
|
+
* If exclusive canonicalization is selected, then the `prefixList` can contain a space separated
|
|
641
|
+
* list of inclusive namespace prefixes. For inclusive canonicalization, this argument is ignored.
|
|
642
|
+
* In general, pass an empty string for this argument unless you have specific knowledge of
|
|
643
|
+
* namespace prefixes that need to be treated as inclusive when EXCL_C14N is used.
|
|
644
|
+
*
|
|
645
|
+
* Starting in Chilkat v9.5.0.70, the `prefixList` can be set to the keyword `_EMPTY_` to force
|
|
646
|
+
* the generation of an empty PrefixList under the Transform. For example:
|
|
647
|
+
*
|
|
648
|
+
* ```
|
|
649
|
+
*
|
|
650
|
+
*
|
|
651
|
+
*
|
|
652
|
+
* ```
|
|
653
|
+
*
|
|
654
|
+
* The `refType` is optional and is usually not needed. Set this to the empty string unless it is
|
|
655
|
+
* desired to add a Type attribute to the Reference that is advisory only.
|
|
656
|
+
*
|
|
657
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
658
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
659
|
+
*/
|
|
660
|
+
addSameDocRef(id: string, digestMethod: string, canonMethod: string, prefixList: string, refType: string): void
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Sets the private key to be used for creating the XML signature. The private key may be an RSA
|
|
664
|
+
* key, a DSA key, or an ECDSA key.
|
|
665
|
+
*
|
|
666
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
667
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
668
|
+
*/
|
|
669
|
+
setPrivateKey(privKey: PrivateKey): void
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Creates an XML Digital Signature. The application passes in the XML to be signed, and the
|
|
673
|
+
* signed XML is returned. If creating an enveloping signature where the Signature element is the
|
|
674
|
+
* root, then the `inXml` may be the empty string.
|
|
675
|
+
*
|
|
676
|
+
* - Chilkat v9.5.0.76 or greater is required for XML signatures for www.csioz.gov.pl
|
|
677
|
+
*
|
|
678
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
679
|
+
* {@link XmlDSigGen.createXmlDSigAsync}.
|
|
680
|
+
*
|
|
681
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
682
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
683
|
+
*/
|
|
684
|
+
createXmlDSig(inXml: string): string
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Asynchronous form of {@link XmlDSigGen.createXmlDSig}: the same call on a native worker thread,
|
|
688
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
689
|
+
* except {@link XmlDSigGen.abort} (which cancels it) and the {@link XmlDSigGen.onPercentDone} /
|
|
690
|
+
* {@link XmlDSigGen.onProgressInfo} callbacks, which report progress while it runs.
|
|
691
|
+
*
|
|
692
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
693
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
694
|
+
*/
|
|
695
|
+
createXmlDSigAsync(inXml: string): Promise<string>
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Specifies the X.509 certificate to be used for the KeyInfo element when the KeyInfoType equals
|
|
699
|
+
* `X509Data`. If `usePrivateKey` is `true`, then the private key will also be set using the
|
|
700
|
+
* certificate's private key. Thus, the **SetPrivateKey** method does not need to be called. **If
|
|
701
|
+
* `usePrivateKey` is `true`, and the certificate does not have an associated private key
|
|
702
|
+
* available, then this method will return `false`.**
|
|
703
|
+
*
|
|
704
|
+
* Note: A certificate's private key is not stored within a certificate itself. If the certificate
|
|
705
|
+
* (`cert`) was obtained from a PFX, Java KeyStore, or other such source, which are containers for
|
|
706
|
+
* both certs and private keys, then Chilkat would have associated the cert with the private key
|
|
707
|
+
* when loading the PFX or JKS, and all is good. The same holds true if, on a Windows system, the
|
|
708
|
+
* certificate was obtained from a Windows-based registry certificate store where the private key
|
|
709
|
+
* was installed with the permission to export.
|
|
710
|
+
*
|
|
711
|
+
* If, however, the certificate was loaded from a .cer file, or another type of file that contains
|
|
712
|
+
* only the certificate and not the private key, then the associated private key needs to be
|
|
713
|
+
* obtained by the application and provided by calling SetPrivateKey.
|
|
714
|
+
*
|
|
715
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
716
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
717
|
+
*/
|
|
718
|
+
setX509Cert(cert: Cert, usePrivateKey: boolean): void
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Sets the HMAC key to be used if the Signature is to use an HMAC signing algorithm. The
|
|
722
|
+
* `encoding` specifies the encoding of `key`, and can be `hex`, `base64`, `ascii`, or any of the
|
|
723
|
+
* binary encodings supported by Chilkat in the link below.
|
|
724
|
+
*
|
|
725
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
726
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
727
|
+
*/
|
|
728
|
+
setHmacKey(key: string, encoding: string): void
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Specifies an external file Reference to be added to the Signature when generated.
|
|
732
|
+
*
|
|
733
|
+
* The `uri` is the value of the **URI** attribute of the Reference. It can (and likely will) be
|
|
734
|
+
* different than the `localFilePath` which is the path to the local file to be added. (The local
|
|
735
|
+
* file is not read until the XML digital signature is actually created.)
|
|
736
|
+
*
|
|
737
|
+
* The `digestMethod` is the digest method and can be one of the following: `sha1`, `sha256`,
|
|
738
|
+
* `sha384`, `sha512`, `ripemd160`, or `md5`.
|
|
739
|
+
*
|
|
740
|
+
* The `refType` is optional and is usually not needed. Set this to the empty string unless it is
|
|
741
|
+
* desired to add a Type attribute to the Reference that is advisory only.
|
|
742
|
+
*
|
|
743
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
744
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
745
|
+
*/
|
|
746
|
+
addExternalFileRef(uri: string, localFilePath: string, digestMethod: string, refType: string): void
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Specifies an external non-XML binary data Reference to be added to the Signature when
|
|
750
|
+
* generated.
|
|
751
|
+
*
|
|
752
|
+
* The `uri` is the value of the **URI** attribute of the Reference.
|
|
753
|
+
*
|
|
754
|
+
* The `content` contains the binary data to be digested according to the `digestMethod`.
|
|
755
|
+
*
|
|
756
|
+
* The `digestMethod` is the digest method and can be one of the following: `sha1`, `sha256`,
|
|
757
|
+
* `sha384`, `sha512`, `ripemd160`, or `md5`.
|
|
758
|
+
*
|
|
759
|
+
* The `refType` is optional and is usually not needed. Set this to the empty string unless it is
|
|
760
|
+
* desired to add a Type attribute to the Reference that is advisory only.
|
|
761
|
+
*
|
|
762
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
763
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
764
|
+
*/
|
|
765
|
+
addExternalBinaryRef(uri: string, content: BinData, digestMethod: string, refType: string): void
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Specifies an external non-XML text data Reference to be added to the Signature when generated.
|
|
769
|
+
*
|
|
770
|
+
* The `uri` is the value of the **URI** attribute of the Reference.
|
|
771
|
+
*
|
|
772
|
+
* The `content` contains the non-XML data to be digested according to the `charset`. The
|
|
773
|
+
* `charset` specifies the charset (such as `utf-8`, `windows-1252`, etc.) for the byte
|
|
774
|
+
* reprsentation of the text to be digested. The `includeBom` indicates whether the BOM (Byte
|
|
775
|
+
* Order Mark, also known as the preamble) is included in the byte representation that is
|
|
776
|
+
* digested.
|
|
777
|
+
*
|
|
778
|
+
* The `digestMethod` is the digest method and can be one of the following: `sha1`, `sha256`,
|
|
779
|
+
* `sha384`, `sha512`, `ripemd160`, or `md5`.
|
|
780
|
+
*
|
|
781
|
+
* The `refType` is optional and is usually not needed. Set this to the empty string unless it is
|
|
782
|
+
* desired to add a Type attribute to the Reference that is advisory only.
|
|
783
|
+
*
|
|
784
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
785
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
786
|
+
*/
|
|
787
|
+
addExternalTextRef(uri: string, content: StringBuilder, charset: string, includeBom: boolean, digestMethod: string, refType: string): void
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Specifies an external XML Reference to be added to the Signature when generated.
|
|
791
|
+
*
|
|
792
|
+
* The `uri` is the value of the **URI** attribute of the Reference.
|
|
793
|
+
*
|
|
794
|
+
* The `content` contains the XML document to be referenced.
|
|
795
|
+
*
|
|
796
|
+
* The `digestMethod` is the digest method and can be one of the following: `sha1`, `sha256`,
|
|
797
|
+
* `sha384`, `sha512`, `ripemd160`, or `md5`.
|
|
798
|
+
*
|
|
799
|
+
* The `canonMethod` is the canonicalization method, and can be one of the following.
|
|
800
|
+
*
|
|
801
|
+
* - `C14N` -- for Inclusive Canonical XML (without comments)
|
|
802
|
+
*
|
|
803
|
+
* - `C14N_11` -- for Inclusive Canonical XML 1.1 (without comments)
|
|
804
|
+
*
|
|
805
|
+
* - `EXCL_C14N` -- for Exclusive Canonical XML (without comments)
|
|
806
|
+
*
|
|
807
|
+
* - `C14N_WithComments` -- for Inclusive Canonical XML (with comments)
|
|
808
|
+
*
|
|
809
|
+
* - `C14N_11_WithComments` -- for Inclusive Canonical XML 1.1 (with comments)
|
|
810
|
+
*
|
|
811
|
+
* - `EXCL_C14N_WithComments` -- for Exclusive Canonical XML (with comments)
|
|
812
|
+
*
|
|
813
|
+
* - -- An empty string indicates that no transformation should be included / applied for this
|
|
814
|
+
* reference.
|
|
815
|
+
*
|
|
816
|
+
* - **Note:** The WithComments options are available in Chilkat v9.5.0.71 and later.
|
|
817
|
+
*
|
|
818
|
+
* - **Note:** The empty-string canonMethod is available in Chilkat v9.5.0.75 and later.
|
|
819
|
+
*
|
|
820
|
+
* The `refType` is optional and is usually not needed. Set this to the empty string unless it is
|
|
821
|
+
* desired to add a Type attribute to the Reference that is advisory only.
|
|
822
|
+
*
|
|
823
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
824
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
825
|
+
*/
|
|
826
|
+
addExternalXmlRef(uri: string, content: StringBuilder, digestMethod: string, canonMethod: string, refType: string): void
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Creates an XML Digital Signature. The application passes the XML to be signed in `sbXml`, and
|
|
830
|
+
* it is replaced with the signed XML if successful. (Thus, `sbXml` is both an input and output
|
|
831
|
+
* argument.) Note: If creating an enveloping signature where the Signature element is to be the
|
|
832
|
+
* root element, then the passed-in `sbXml` may be empty.
|
|
833
|
+
*
|
|
834
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
835
|
+
* {@link XmlDSigGen.createXmlDSigSbAsync}.
|
|
836
|
+
*
|
|
837
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
838
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
839
|
+
*/
|
|
840
|
+
createXmlDSigSb(sbXml: StringBuilder): void
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Asynchronous form of {@link XmlDSigGen.createXmlDSigSb}: the same call on a native worker
|
|
844
|
+
* thread,
|
|
845
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
846
|
+
* except {@link XmlDSigGen.abort} (which cancels it) and the {@link XmlDSigGen.onPercentDone} /
|
|
847
|
+
* {@link XmlDSigGen.onProgressInfo} callbacks, which report progress while it runs.
|
|
848
|
+
*
|
|
849
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
850
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
851
|
+
*/
|
|
852
|
+
createXmlDSigSbAsync(sbXml: StringBuilder): Promise<void>
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* This method will construct and return the canonicalized SignedInfo XML. The digests of each
|
|
856
|
+
* Reference are computed and included in the SignedInfo. This method is provided for certain
|
|
857
|
+
* special circumstances where one wants to get the exact canonicalized SignedInfo that would be
|
|
858
|
+
* signed using the private key.
|
|
859
|
+
*
|
|
860
|
+
* Note: Properties such as SigLocation, SigningAlg, etc. and references must be set exactly as if
|
|
861
|
+
* an XML signature was to be actually generated because they determine the content of the
|
|
862
|
+
* SignedInfo.
|
|
863
|
+
*
|
|
864
|
+
* Note, the `sbXml` is not signed by this method. It is not modified.
|
|
865
|
+
*
|
|
866
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
867
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
868
|
+
*/
|
|
869
|
+
constructSignedInfo(sbXml: StringBuilder): string
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Sets the `Id` attribute for a Reference.
|
|
873
|
+
*
|
|
874
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
875
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
876
|
+
*/
|
|
877
|
+
setRefIdAttr(uriOrId: string, value: string): void
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Specifies an Object to be added to the Signature.
|
|
881
|
+
*
|
|
882
|
+
* - The `id` is the value of the Object element's Id attribute.
|
|
883
|
+
*
|
|
884
|
+
* - The `content` contains the content of the Object element, which may be XML or plain text.
|
|
885
|
+
*
|
|
886
|
+
* - The `mimeType` is the value of the Object element's MimeType attribute
|
|
887
|
+
*
|
|
888
|
+
* - The `encoding` is the value of the Object element's Encoding attribute
|
|
889
|
+
*
|
|
890
|
+
* In most cases, the `mimeType` and `encoding` are empty strings which cause the MimeType and
|
|
891
|
+
* Encoding attributes to be omitted.
|
|
892
|
+
*
|
|
893
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
894
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
895
|
+
*/
|
|
896
|
+
addObject(id: string, content: string, mimeType: string, encoding: string): void
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* This is the same as the AddSameDocRef method, except the reference is to content within an
|
|
900
|
+
* Object previously added via the AddObject method. The `id` must be an Id equal to the Id
|
|
901
|
+
* attribute of an Object, or the Id attribute of an element within the Object.
|
|
902
|
+
*
|
|
903
|
+
* Note: The `canonMethod` can be set to `Base64` to use the
|
|
904
|
+
* <http://www.w3.org/2000/09/xmldsig#base64> transform.
|
|
905
|
+
*
|
|
906
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
907
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
908
|
+
*/
|
|
909
|
+
addObjectRef(id: string, digestMethod: string, canonMethod: string, prefixList: string, refType: string): void
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Can be called one or more times to add additional namespaces to the Signature element.
|
|
913
|
+
*
|
|
914
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
915
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
916
|
+
*/
|
|
917
|
+
addSignatureNamespace(nsPrefix: string, nsUri: string): void
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Sets the HTTP object to be used to communicate with OCSP responders, CRL distribution points,
|
|
921
|
+
* or timestamp authority (TSA) servers if needed. The `http` is used to send the requests, and it
|
|
922
|
+
* allows for connection related settings and timeouts to be set. For example, if HTTP or SOCKS
|
|
923
|
+
* proxies are required, these features can be specified on the `http`.
|
|
924
|
+
*/
|
|
925
|
+
setHttpObj(http: Http): void
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* This method is the same as AddSameDocRef, except it allows the Transforms to be specified
|
|
929
|
+
* exactly with a fragment of XML. See the example below.
|
|
930
|
+
*
|
|
931
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
932
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
933
|
+
*/
|
|
934
|
+
addSameDocRef2(id: string, digestMethod: string, transforms: Xml, refType: string): void
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* This method is the same as AddObjectRef, except it allows the Transforms to be specified
|
|
938
|
+
* exactly with a fragment of XML. See the example below.
|
|
939
|
+
*
|
|
940
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
941
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
942
|
+
*/
|
|
943
|
+
addObjectRef2(id: string, digestMethod: string, transforms: Xml, refType: string): void
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Sets the TSA (Timestamp Authority) URL and other related settings for automatically adding an
|
|
947
|
+
* EncapsulatedTimestamp.
|
|
948
|
+
*
|
|
949
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
950
|
+
* {@link XmlDSigGen.lastErrorText}.
|
|
951
|
+
*/
|
|
952
|
+
setTsa(json: JsonObject): void
|
|
953
|
+
|
|
954
|
+
// ---- Events (ReactNativeGen_DESIGN.md §6) ----
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Called with the percent completed (0..100) while a long-running method runs, when Chilkat
|
|
958
|
+
* can measure progress. Runs on the JavaScript thread, so it is only useful with the
|
|
959
|
+
* `...Async` methods (during a synchronous call the thread is busy and the events arrive
|
|
960
|
+
* after it returns). Assign `undefined` to remove.
|
|
961
|
+
*/
|
|
962
|
+
onPercentDone?: (pctDone: number) => void
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Called with a name/value pair of progress information while a long-running method runs
|
|
966
|
+
* (what is reported depends on the class and method). Runs on the JavaScript thread; see
|
|
967
|
+
* {@link XmlDSigGen.onPercentDone}. Assign `undefined` to remove.
|
|
968
|
+
*/
|
|
969
|
+
onProgressInfo?: (name: string, value: string) => void
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Requests that the pending `...Async` call on this object stop at its next progress check.
|
|
973
|
+
* The promise then rejects with Chilkat's abort error. Chilkat checks at least every
|
|
974
|
+
* `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
|
|
975
|
+
* for a responsive cancel. Harmless when nothing is pending.
|
|
976
|
+
*/
|
|
977
|
+
abort(): void
|
|
978
|
+
}
|