sfcc-dev-mcp 1.0.0
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/LICENSE +15 -0
- package/README.md +338 -0
- package/dist/best-practices-client.d.ts +55 -0
- package/dist/best-practices-client.d.ts.map +1 -0
- package/dist/best-practices-client.js +201 -0
- package/dist/best-practices-client.js.map +1 -0
- package/dist/cache.d.ts +105 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +225 -0
- package/dist/cache.js.map +1 -0
- package/dist/config.d.ts +26 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +67 -0
- package/dist/config.js.map +1 -0
- package/dist/docs-client.d.ts +124 -0
- package/dist/docs-client.d.ts.map +1 -0
- package/dist/docs-client.js +442 -0
- package/dist/docs-client.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/log-client.d.ts +79 -0
- package/dist/log-client.d.ts.map +1 -0
- package/dist/log-client.js +226 -0
- package/dist/log-client.js.map +1 -0
- package/dist/main.d.ts +15 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +110 -0
- package/dist/main.js.map +1 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +539 -0
- package/dist/server.js.map +1 -0
- package/dist/types.d.ts +79 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +46 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +96 -0
- package/dist/utils.js.map +1 -0
- package/docs/TopLevel/APIException.md +68 -0
- package/docs/TopLevel/Array.md +897 -0
- package/docs/TopLevel/ArrayBuffer.md +79 -0
- package/docs/TopLevel/BigInt.md +132 -0
- package/docs/TopLevel/Boolean.md +62 -0
- package/docs/TopLevel/ConversionError.md +23 -0
- package/docs/TopLevel/DataView.md +352 -0
- package/docs/TopLevel/Date.md +924 -0
- package/docs/TopLevel/ES6Iterator.md +33 -0
- package/docs/TopLevel/Error.md +88 -0
- package/docs/TopLevel/EvalError.md +23 -0
- package/docs/TopLevel/Fault.md +87 -0
- package/docs/TopLevel/Float32Array.md +124 -0
- package/docs/TopLevel/Float64Array.md +124 -0
- package/docs/TopLevel/Function.md +105 -0
- package/docs/TopLevel/Generator.md +78 -0
- package/docs/TopLevel/IOError.md +62 -0
- package/docs/TopLevel/Int16Array.md +124 -0
- package/docs/TopLevel/Int32Array.md +124 -0
- package/docs/TopLevel/Int8Array.md +124 -0
- package/docs/TopLevel/InternalError.md +23 -0
- package/docs/TopLevel/Iterable.md +41 -0
- package/docs/TopLevel/Iterator.md +48 -0
- package/docs/TopLevel/JSON.md +162 -0
- package/docs/TopLevel/Map.md +216 -0
- package/docs/TopLevel/Math.md +865 -0
- package/docs/TopLevel/Module.md +45 -0
- package/docs/TopLevel/Namespace.md +96 -0
- package/docs/TopLevel/Number.md +375 -0
- package/docs/TopLevel/Object.md +641 -0
- package/docs/TopLevel/QName.md +96 -0
- package/docs/TopLevel/RangeError.md +23 -0
- package/docs/TopLevel/ReferenceError.md +23 -0
- package/docs/TopLevel/RegExp.md +109 -0
- package/docs/TopLevel/Set.md +165 -0
- package/docs/TopLevel/StopIteration.md +20 -0
- package/docs/TopLevel/String.md +1299 -0
- package/docs/TopLevel/Symbol.md +78 -0
- package/docs/TopLevel/SyntaxError.md +23 -0
- package/docs/TopLevel/SystemError.md +62 -0
- package/docs/TopLevel/TypeError.md +23 -0
- package/docs/TopLevel/URIError.md +23 -0
- package/docs/TopLevel/Uint16Array.md +124 -0
- package/docs/TopLevel/Uint32Array.md +124 -0
- package/docs/TopLevel/Uint8Array.md +124 -0
- package/docs/TopLevel/Uint8ClampedArray.md +124 -0
- package/docs/TopLevel/WeakMap.md +137 -0
- package/docs/TopLevel/WeakSet.md +92 -0
- package/docs/TopLevel/XML.md +937 -0
- package/docs/TopLevel/XMLList.md +484 -0
- package/docs/TopLevel/XMLStreamError.md +74 -0
- package/docs/TopLevel/arguments.md +34 -0
- package/docs/TopLevel/global.md +462 -0
- package/docs/best-practices/ocapi_hooks.md +295 -0
- package/docs/best-practices/scapi_custom_endpoint.md +176 -0
- package/docs/best-practices/scapi_hooks.md +295 -0
- package/docs/best-practices/sfra_controllers.md +190 -0
- package/docs/dw_campaign/ABTest.md +47 -0
- package/docs/dw_campaign/ABTestMgr.md +70 -0
- package/docs/dw_campaign/ABTestSegment.md +96 -0
- package/docs/dw_campaign/AmountDiscount.md +51 -0
- package/docs/dw_campaign/ApproachingDiscount.md +124 -0
- package/docs/dw_campaign/BonusChoiceDiscount.md +146 -0
- package/docs/dw_campaign/BonusDiscount.md +48 -0
- package/docs/dw_campaign/Campaign.md +365 -0
- package/docs/dw_campaign/CampaignMgr.md +395 -0
- package/docs/dw_campaign/CampaignStatusCodes.md +24 -0
- package/docs/dw_campaign/Coupon.md +292 -0
- package/docs/dw_campaign/CouponMgr.md +138 -0
- package/docs/dw_campaign/CouponRedemption.md +94 -0
- package/docs/dw_campaign/CouponStatusCodes.md +20 -0
- package/docs/dw_campaign/Discount.md +160 -0
- package/docs/dw_campaign/DiscountPlan.md +282 -0
- package/docs/dw_campaign/FixedPriceDiscount.md +52 -0
- package/docs/dw_campaign/FixedPriceShippingDiscount.md +52 -0
- package/docs/dw_campaign/FreeDiscount.md +17 -0
- package/docs/dw_campaign/FreeShippingDiscount.md +17 -0
- package/docs/dw_campaign/PercentageDiscount.md +52 -0
- package/docs/dw_campaign/PercentageOptionDiscount.md +48 -0
- package/docs/dw_campaign/PriceBookPriceDiscount.md +47 -0
- package/docs/dw_campaign/Promotion.md +826 -0
- package/docs/dw_campaign/PromotionMgr.md +386 -0
- package/docs/dw_campaign/PromotionPlan.md +318 -0
- package/docs/dw_campaign/SlotContent.md +144 -0
- package/docs/dw_campaign/SourceCodeGroup.md +72 -0
- package/docs/dw_campaign/SourceCodeInfo.md +126 -0
- package/docs/dw_campaign/SourceCodeStatusCodes.md +24 -0
- package/docs/dw_campaign/TotalFixedPriceDiscount.md +47 -0
- package/docs/dw_catalog/Catalog.md +122 -0
- package/docs/dw_catalog/CatalogMgr.md +182 -0
- package/docs/dw_catalog/Category.md +1296 -0
- package/docs/dw_catalog/CategoryAssignment.md +192 -0
- package/docs/dw_catalog/CategoryLink.md +96 -0
- package/docs/dw_catalog/PriceBook.md +242 -0
- package/docs/dw_catalog/PriceBookMgr.md +205 -0
- package/docs/dw_catalog/Product.md +2593 -0
- package/docs/dw_catalog/ProductActiveData.md +1275 -0
- package/docs/dw_catalog/ProductAttributeModel.md +277 -0
- package/docs/dw_catalog/ProductAvailabilityLevels.md +142 -0
- package/docs/dw_catalog/ProductAvailabilityModel.md +356 -0
- package/docs/dw_catalog/ProductInventoryList.md +140 -0
- package/docs/dw_catalog/ProductInventoryMgr.md +99 -0
- package/docs/dw_catalog/ProductInventoryRecord.md +563 -0
- package/docs/dw_catalog/ProductLink.md +96 -0
- package/docs/dw_catalog/ProductMgr.md +138 -0
- package/docs/dw_catalog/ProductOption.md +214 -0
- package/docs/dw_catalog/ProductOptionModel.md +246 -0
- package/docs/dw_catalog/ProductOptionValue.md +123 -0
- package/docs/dw_catalog/ProductPriceInfo.md +172 -0
- package/docs/dw_catalog/ProductPriceModel.md +745 -0
- package/docs/dw_catalog/ProductPriceTable.md +134 -0
- package/docs/dw_catalog/ProductSearchHit.md +545 -0
- package/docs/dw_catalog/ProductSearchModel.md +1912 -0
- package/docs/dw_catalog/ProductSearchRefinementDefinition.md +97 -0
- package/docs/dw_catalog/ProductSearchRefinementValue.md +73 -0
- package/docs/dw_catalog/ProductSearchRefinements.md +216 -0
- package/docs/dw_catalog/ProductVariationAttribute.md +100 -0
- package/docs/dw_catalog/ProductVariationAttributeValue.md +238 -0
- package/docs/dw_catalog/ProductVariationModel.md +849 -0
- package/docs/dw_catalog/Recommendation.md +296 -0
- package/docs/dw_catalog/SearchModel.md +877 -0
- package/docs/dw_catalog/SearchRefinementDefinition.md +146 -0
- package/docs/dw_catalog/SearchRefinementValue.md +185 -0
- package/docs/dw_catalog/SearchRefinements.md +156 -0
- package/docs/dw_catalog/SortingOption.md +120 -0
- package/docs/dw_catalog/SortingRule.md +47 -0
- package/docs/dw_catalog/Store.md +562 -0
- package/docs/dw_catalog/StoreGroup.md +96 -0
- package/docs/dw_catalog/StoreInventoryFilter.md +74 -0
- package/docs/dw_catalog/StoreInventoryFilterValue.md +74 -0
- package/docs/dw_catalog/StoreMgr.md +236 -0
- package/docs/dw_catalog/Variant.md +859 -0
- package/docs/dw_catalog/VariationGroup.md +792 -0
- package/docs/dw_content/Content.md +534 -0
- package/docs/dw_content/ContentMgr.md +160 -0
- package/docs/dw_content/ContentSearchModel.md +670 -0
- package/docs/dw_content/ContentSearchRefinementDefinition.md +49 -0
- package/docs/dw_content/ContentSearchRefinementValue.md +17 -0
- package/docs/dw_content/ContentSearchRefinements.md +208 -0
- package/docs/dw_content/Folder.md +467 -0
- package/docs/dw_content/Library.md +121 -0
- package/docs/dw_content/MarkupText.md +88 -0
- package/docs/dw_content/MediaFile.md +317 -0
- package/docs/dw_crypto/CertificateRef.md +42 -0
- package/docs/dw_crypto/Cipher.md +524 -0
- package/docs/dw_crypto/Encoding.md +220 -0
- package/docs/dw_crypto/JWE.md +182 -0
- package/docs/dw_crypto/JWS.md +264 -0
- package/docs/dw_crypto/JWSHeader.md +148 -0
- package/docs/dw_crypto/KeyRef.md +44 -0
- package/docs/dw_crypto/Mac.md +109 -0
- package/docs/dw_crypto/MessageDigest.md +139 -0
- package/docs/dw_crypto/SecureRandom.md +148 -0
- package/docs/dw_crypto/Signature.md +246 -0
- package/docs/dw_crypto/WeakCipher.md +532 -0
- package/docs/dw_crypto/WeakMac.md +109 -0
- package/docs/dw_crypto/WeakMessageDigest.md +139 -0
- package/docs/dw_crypto/WeakSignature.md +242 -0
- package/docs/dw_customer/AddressBook.md +163 -0
- package/docs/dw_customer/AgentUserMgr.md +83 -0
- package/docs/dw_customer/AgentUserStatusCodes.md +24 -0
- package/docs/dw_customer/AuthenticationStatus.md +96 -0
- package/docs/dw_customer/Credentials.md +494 -0
- package/docs/dw_customer/Customer.md +571 -0
- package/docs/dw_customer/CustomerActiveData.md +552 -0
- package/docs/dw_customer/CustomerAddress.md +852 -0
- package/docs/dw_customer/CustomerCDPData.md +70 -0
- package/docs/dw_customer/CustomerContextMgr.md +64 -0
- package/docs/dw_customer/CustomerGroup.md +134 -0
- package/docs/dw_customer/CustomerList.md +71 -0
- package/docs/dw_customer/CustomerMgr.md +735 -0
- package/docs/dw_customer/CustomerPasswordConstraints.md +142 -0
- package/docs/dw_customer/CustomerPaymentInstrument.md +125 -0
- package/docs/dw_customer/CustomerStatusCodes.md +24 -0
- package/docs/dw_customer/EncryptedObject.md +18 -0
- package/docs/dw_customer/ExternalProfile.md +160 -0
- package/docs/dw_customer/OrderHistory.md +111 -0
- package/docs/dw_customer/ProductList.md +952 -0
- package/docs/dw_customer/ProductListItem.md +492 -0
- package/docs/dw_customer/ProductListItemPurchase.md +145 -0
- package/docs/dw_customer/ProductListMgr.md +234 -0
- package/docs/dw_customer/ProductListRegistrant.md +193 -0
- package/docs/dw_customer/Profile.md +1128 -0
- package/docs/dw_customer/Wallet.md +118 -0
- package/docs/dw_extensions.applepay/ApplePayHookResult.md +161 -0
- package/docs/dw_extensions.applepay/ApplePayHooks.md +255 -0
- package/docs/dw_extensions.facebook/FacebookFeedHooks.md +47 -0
- package/docs/dw_extensions.facebook/FacebookProduct.md +1483 -0
- package/docs/dw_extensions.paymentrequest/PaymentRequestHookResult.md +159 -0
- package/docs/dw_extensions.paymentrequest/PaymentRequestHooks.md +160 -0
- package/docs/dw_extensions.payments/SalesforceBancontactPaymentDetails.md +79 -0
- package/docs/dw_extensions.payments/SalesforceCardPaymentDetails.md +103 -0
- package/docs/dw_extensions.payments/SalesforceEpsPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceIdealPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceKlarnaPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrder.md +234 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrderAddress.md +191 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrderPayer.md +118 -0
- package/docs/dw_extensions.payments/SalesforcePayPalPaymentDetails.md +79 -0
- package/docs/dw_extensions.payments/SalesforcePaymentDetails.md +57 -0
- package/docs/dw_extensions.payments/SalesforcePaymentIntent.md +269 -0
- package/docs/dw_extensions.payments/SalesforcePaymentMethod.md +304 -0
- package/docs/dw_extensions.payments/SalesforcePaymentRequest.md +622 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsHooks.md +45 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsMgr.md +592 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsSiteConfiguration.md +95 -0
- package/docs/dw_extensions.payments/SalesforceSepaDebitPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceVenmoPaymentDetails.md +79 -0
- package/docs/dw_extensions.pinterest/PinterestAvailability.md +86 -0
- package/docs/dw_extensions.pinterest/PinterestFeedHooks.md +69 -0
- package/docs/dw_extensions.pinterest/PinterestOrder.md +172 -0
- package/docs/dw_extensions.pinterest/PinterestOrderHooks.md +45 -0
- package/docs/dw_extensions.pinterest/PinterestProduct.md +814 -0
- package/docs/dw_io/CSVStreamReader.md +80 -0
- package/docs/dw_io/CSVStreamWriter.md +60 -0
- package/docs/dw_io/File.md +554 -0
- package/docs/dw_io/FileReader.md +41 -0
- package/docs/dw_io/FileWriter.md +103 -0
- package/docs/dw_io/InputStream.md +34 -0
- package/docs/dw_io/OutputStream.md +34 -0
- package/docs/dw_io/PrintWriter.md +71 -0
- package/docs/dw_io/RandomAccessFileReader.md +167 -0
- package/docs/dw_io/Reader.md +274 -0
- package/docs/dw_io/StringWriter.md +81 -0
- package/docs/dw_io/Writer.md +92 -0
- package/docs/dw_io/XMLIndentingStreamWriter.md +112 -0
- package/docs/dw_io/XMLStreamConstants.md +24 -0
- package/docs/dw_io/XMLStreamReader.md +1043 -0
- package/docs/dw_io/XMLStreamWriter.md +572 -0
- package/docs/dw_net/FTPClient.md +675 -0
- package/docs/dw_net/FTPFileInfo.md +122 -0
- package/docs/dw_net/HTTPClient.md +769 -0
- package/docs/dw_net/HTTPRequestPart.md +206 -0
- package/docs/dw_net/Mail.md +431 -0
- package/docs/dw_net/SFTPClient.md +579 -0
- package/docs/dw_net/SFTPFileInfo.md +122 -0
- package/docs/dw_net/WebDAVClient.md +667 -0
- package/docs/dw_net/WebDAVFileInfo.md +184 -0
- package/docs/dw_object/ActiveData.md +75 -0
- package/docs/dw_object/CustomAttributes.md +16 -0
- package/docs/dw_object/CustomObject.md +73 -0
- package/docs/dw_object/CustomObjectMgr.md +291 -0
- package/docs/dw_object/Extensible.md +64 -0
- package/docs/dw_object/ExtensibleObject.md +68 -0
- package/docs/dw_object/Note.md +121 -0
- package/docs/dw_object/ObjectAttributeDefinition.md +373 -0
- package/docs/dw_object/ObjectAttributeGroup.md +170 -0
- package/docs/dw_object/ObjectAttributeValueDefinition.md +72 -0
- package/docs/dw_object/ObjectTypeDefinition.md +216 -0
- package/docs/dw_object/PersistentObject.md +94 -0
- package/docs/dw_object/SimpleExtensible.md +46 -0
- package/docs/dw_object/SystemObjectMgr.md +153 -0
- package/docs/dw_order/AbstractItem.md +244 -0
- package/docs/dw_order/AbstractItemCtnr.md +240 -0
- package/docs/dw_order/Appeasement.md +325 -0
- package/docs/dw_order/AppeasementItem.md +90 -0
- package/docs/dw_order/Basket.md +362 -0
- package/docs/dw_order/BasketMgr.md +402 -0
- package/docs/dw_order/BonusDiscountLineItem.md +248 -0
- package/docs/dw_order/CouponLineItem.md +272 -0
- package/docs/dw_order/CreateAgentBasketLimitExceededException.md +18 -0
- package/docs/dw_order/CreateBasketFromOrderException.md +26 -0
- package/docs/dw_order/CreateCouponLineItemException.md +26 -0
- package/docs/dw_order/CreateOrderException.md +18 -0
- package/docs/dw_order/CreateTemporaryBasketLimitExceededException.md +18 -0
- package/docs/dw_order/GiftCertificate.md +545 -0
- package/docs/dw_order/GiftCertificateLineItem.md +324 -0
- package/docs/dw_order/GiftCertificateMgr.md +161 -0
- package/docs/dw_order/GiftCertificateStatusCodes.md +24 -0
- package/docs/dw_order/Invoice.md +316 -0
- package/docs/dw_order/InvoiceItem.md +222 -0
- package/docs/dw_order/LineItem.md +532 -0
- package/docs/dw_order/LineItemCtnr.md +2317 -0
- package/docs/dw_order/Order.md +2441 -0
- package/docs/dw_order/OrderAddress.md +807 -0
- package/docs/dw_order/OrderItem.md +476 -0
- package/docs/dw_order/OrderMgr.md +535 -0
- package/docs/dw_order/OrderPaymentInstrument.md +220 -0
- package/docs/dw_order/OrderProcessStatusCodes.md +24 -0
- package/docs/dw_order/PaymentCard.md +217 -0
- package/docs/dw_order/PaymentInstrument.md +1414 -0
- package/docs/dw_order/PaymentMethod.md +242 -0
- package/docs/dw_order/PaymentMgr.md +117 -0
- package/docs/dw_order/PaymentProcessor.md +70 -0
- package/docs/dw_order/PaymentStatusCodes.md +24 -0
- package/docs/dw_order/PaymentTransaction.md +304 -0
- package/docs/dw_order/PriceAdjustment.md +640 -0
- package/docs/dw_order/PriceAdjustmentLimitTypes.md +20 -0
- package/docs/dw_order/ProductLineItem.md +1821 -0
- package/docs/dw_order/ProductShippingCost.md +96 -0
- package/docs/dw_order/ProductShippingLineItem.md +320 -0
- package/docs/dw_order/ProductShippingModel.md +125 -0
- package/docs/dw_order/Return.md +318 -0
- package/docs/dw_order/ReturnCase.md +340 -0
- package/docs/dw_order/ReturnCaseItem.md +343 -0
- package/docs/dw_order/ReturnItem.md +362 -0
- package/docs/dw_order/Shipment.md +1227 -0
- package/docs/dw_order/ShipmentShippingCost.md +46 -0
- package/docs/dw_order/ShipmentShippingModel.md +146 -0
- package/docs/dw_order/ShippingLineItem.md +272 -0
- package/docs/dw_order/ShippingLocation.md +366 -0
- package/docs/dw_order/ShippingMethod.md +266 -0
- package/docs/dw_order/ShippingMgr.md +158 -0
- package/docs/dw_order/ShippingOrder.md +507 -0
- package/docs/dw_order/ShippingOrderItem.md +331 -0
- package/docs/dw_order/SumItem.md +147 -0
- package/docs/dw_order/TaxGroup.md +143 -0
- package/docs/dw_order/TaxItem.md +74 -0
- package/docs/dw_order/TaxMgr.md +215 -0
- package/docs/dw_order/TrackingInfo.md +312 -0
- package/docs/dw_order/TrackingRef.md +113 -0
- package/docs/dw_order.hooks/CalculateHooks.md +77 -0
- package/docs/dw_order.hooks/OrderHooks.md +41 -0
- package/docs/dw_order.hooks/PaymentHooks.md +180 -0
- package/docs/dw_order.hooks/ReturnHooks.md +135 -0
- package/docs/dw_order.hooks/ShippingOrderHooks.md +245 -0
- package/docs/dw_rpc/SOAPUtil.md +333 -0
- package/docs/dw_rpc/Stub.md +259 -0
- package/docs/dw_rpc/WebReference.md +83 -0
- package/docs/dw_suggest/BrandSuggestions.md +17 -0
- package/docs/dw_suggest/CategorySuggestions.md +53 -0
- package/docs/dw_suggest/ContentSuggestions.md +53 -0
- package/docs/dw_suggest/CustomSuggestions.md +17 -0
- package/docs/dw_suggest/ProductSuggestions.md +53 -0
- package/docs/dw_suggest/SearchPhraseSuggestions.md +117 -0
- package/docs/dw_suggest/SuggestModel.md +397 -0
- package/docs/dw_suggest/SuggestedCategory.md +46 -0
- package/docs/dw_suggest/SuggestedContent.md +46 -0
- package/docs/dw_suggest/SuggestedPhrase.md +70 -0
- package/docs/dw_suggest/SuggestedProduct.md +47 -0
- package/docs/dw_suggest/SuggestedTerm.md +143 -0
- package/docs/dw_suggest/SuggestedTerms.md +132 -0
- package/docs/dw_suggest/Suggestions.md +179 -0
- package/docs/dw_svc/FTPService.md +118 -0
- package/docs/dw_svc/FTPServiceDefinition.md +69 -0
- package/docs/dw_svc/HTTPFormService.md +18 -0
- package/docs/dw_svc/HTTPFormServiceDefinition.md +18 -0
- package/docs/dw_svc/HTTPService.md +415 -0
- package/docs/dw_svc/HTTPServiceDefinition.md +303 -0
- package/docs/dw_svc/LocalServiceRegistry.md +43 -0
- package/docs/dw_svc/Result.md +255 -0
- package/docs/dw_svc/SOAPService.md +115 -0
- package/docs/dw_svc/SOAPServiceDefinition.md +17 -0
- package/docs/dw_svc/Service.md +295 -0
- package/docs/dw_svc/ServiceCallback.md +268 -0
- package/docs/dw_svc/ServiceConfig.md +120 -0
- package/docs/dw_svc/ServiceCredential.md +150 -0
- package/docs/dw_svc/ServiceDefinition.md +176 -0
- package/docs/dw_svc/ServiceProfile.md +168 -0
- package/docs/dw_svc/ServiceRegistry.md +109 -0
- package/docs/dw_system/AgentUserStatusCodes.md +21 -0
- package/docs/dw_system/Cache.md +102 -0
- package/docs/dw_system/CacheMgr.md +42 -0
- package/docs/dw_system/HookMgr.md +66 -0
- package/docs/dw_system/InternalObject.md +56 -0
- package/docs/dw_system/JobProcessMonitor.md +124 -0
- package/docs/dw_system/Log.md +237 -0
- package/docs/dw_system/LogNDC.md +88 -0
- package/docs/dw_system/Logger.md +263 -0
- package/docs/dw_system/OrganizationPreferences.md +18 -0
- package/docs/dw_system/Pipeline.md +73 -0
- package/docs/dw_system/PipelineDictionary.md +16 -0
- package/docs/dw_system/RESTErrorResponse.md +66 -0
- package/docs/dw_system/RESTResponseMgr.md +258 -0
- package/docs/dw_system/RESTSuccessResponse.md +39 -0
- package/docs/dw_system/RemoteInclude.md +74 -0
- package/docs/dw_system/Request.md +839 -0
- package/docs/dw_system/RequestHooks.md +59 -0
- package/docs/dw_system/Response.md +318 -0
- package/docs/dw_system/SearchStatus.md +91 -0
- package/docs/dw_system/Session.md +476 -0
- package/docs/dw_system/Site.md +567 -0
- package/docs/dw_system/SitePreferences.md +49 -0
- package/docs/dw_system/Status.md +273 -0
- package/docs/dw_system/StatusItem.md +273 -0
- package/docs/dw_system/System.md +182 -0
- package/docs/dw_system/Transaction.md +84 -0
- package/docs/dw_util/ArrayList.md +50 -0
- package/docs/dw_util/Assert.md +391 -0
- package/docs/dw_util/BigInteger.md +326 -0
- package/docs/dw_util/Bytes.md +246 -0
- package/docs/dw_util/Calendar.md +663 -0
- package/docs/dw_util/Collection.md +338 -0
- package/docs/dw_util/Currency.md +163 -0
- package/docs/dw_util/DateUtils.md +86 -0
- package/docs/dw_util/Decimal.md +438 -0
- package/docs/dw_util/FilteringCollection.md +87 -0
- package/docs/dw_util/Geolocation.md +271 -0
- package/docs/dw_util/HashMap.md +43 -0
- package/docs/dw_util/HashSet.md +46 -0
- package/docs/dw_util/Iterator.md +97 -0
- package/docs/dw_util/LinkedHashMap.md +43 -0
- package/docs/dw_util/LinkedHashSet.md +46 -0
- package/docs/dw_util/List.md +519 -0
- package/docs/dw_util/Locale.md +267 -0
- package/docs/dw_util/Map.md +313 -0
- package/docs/dw_util/MapEntry.md +70 -0
- package/docs/dw_util/MappingKey.md +76 -0
- package/docs/dw_util/MappingMgr.md +122 -0
- package/docs/dw_util/PropertyComparator.md +51 -0
- package/docs/dw_util/SecureEncoder.md +350 -0
- package/docs/dw_util/SecureFilter.md +350 -0
- package/docs/dw_util/SeekableIterator.md +176 -0
- package/docs/dw_util/Set.md +19 -0
- package/docs/dw_util/SortedMap.md +148 -0
- package/docs/dw_util/SortedSet.md +151 -0
- package/docs/dw_util/StringUtils.md +717 -0
- package/docs/dw_util/Template.md +88 -0
- package/docs/dw_util/UUIDUtils.md +38 -0
- package/docs/dw_value/EnumValue.md +92 -0
- package/docs/dw_value/MimeEncodedText.md +103 -0
- package/docs/dw_value/Money.md +604 -0
- package/docs/dw_value/Quantity.md +376 -0
- package/docs/dw_web/CSRFProtection.md +83 -0
- package/docs/dw_web/ClickStream.md +157 -0
- package/docs/dw_web/ClickStreamEntry.md +289 -0
- package/docs/dw_web/Cookie.md +390 -0
- package/docs/dw_web/Cookies.md +46 -0
- package/docs/dw_web/Form.md +74 -0
- package/docs/dw_web/FormAction.md +199 -0
- package/docs/dw_web/FormElement.md +220 -0
- package/docs/dw_web/FormElementValidationResult.md +157 -0
- package/docs/dw_web/FormField.md +603 -0
- package/docs/dw_web/FormFieldOption.md +238 -0
- package/docs/dw_web/FormFieldOptions.md +42 -0
- package/docs/dw_web/FormGroup.md +199 -0
- package/docs/dw_web/FormList.md +126 -0
- package/docs/dw_web/FormListItem.md +48 -0
- package/docs/dw_web/Forms.md +16 -0
- package/docs/dw_web/HttpParameter.md +513 -0
- package/docs/dw_web/HttpParameterMap.md +185 -0
- package/docs/dw_web/LoopIterator.md +261 -0
- package/docs/dw_web/PageMetaData.md +230 -0
- package/docs/dw_web/PageMetaTag.md +142 -0
- package/docs/dw_web/PagingModel.md +365 -0
- package/docs/dw_web/Resource.md +126 -0
- package/docs/dw_web/URL.md +213 -0
- package/docs/dw_web/URLAction.md +26 -0
- package/docs/dw_web/URLParameter.md +22 -0
- package/docs/dw_web/URLRedirect.md +71 -0
- package/docs/dw_web/URLRedirectMgr.md +73 -0
- package/docs/dw_web/URLUtils.md +1246 -0
- package/package.json +43 -0
- package/scripts/convert-docs.js +617 -0
- package/src/best-practices-client.ts +243 -0
- package/src/cache.ts +291 -0
- package/src/config.ts +77 -0
- package/src/docs-client.ts +540 -0
- package/src/index.ts +22 -0
- package/src/log-client.ts +260 -0
- package/src/main.ts +133 -0
- package/src/server.ts +614 -0
- package/src/types.ts +83 -0
- package/src/utils.ts +103 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
## Package: dw.crypto
|
|
2
|
+
|
|
3
|
+
# Class WeakCipher
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.crypto.WeakCipher
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
This API provides access to Deprecated algorithms. See Cipher for full documentation. WeakCipher is simply a drop-in replacement that only supports deprecated algorithms and key lengths. This is helpful when you need to deal with weak algorithms for backward compatibility purposes, but Cipher should always be used for new development and for anything intended to be secure. Note: this class handles sensitive security-related data. Pay special attention to PCI DSS v3 requirements 2, 4, and 12.
|
|
13
|
+
|
|
14
|
+
## Constants
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
## Constructor Summary
|
|
19
|
+
|
|
20
|
+
WeakCipher()
|
|
21
|
+
|
|
22
|
+
## Method Summary
|
|
23
|
+
|
|
24
|
+
### decrypt
|
|
25
|
+
|
|
26
|
+
**Signature:** `decrypt(base64Msg : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
27
|
+
|
|
28
|
+
Decrypts the message using the given parameters.
|
|
29
|
+
|
|
30
|
+
### decrypt
|
|
31
|
+
|
|
32
|
+
**Signature:** `decrypt(base64Msg : String, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
33
|
+
|
|
34
|
+
Alternative method to decrypt(String, String, String, String, Number), which allows using a key in the keystore for the decryption.
|
|
35
|
+
|
|
36
|
+
### decrypt
|
|
37
|
+
|
|
38
|
+
**Signature:** `decrypt(base64Msg : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
39
|
+
|
|
40
|
+
Decrypts the message using the given parameters.
|
|
41
|
+
|
|
42
|
+
### decrypt
|
|
43
|
+
|
|
44
|
+
**Signature:** `decrypt(base64Msg : String, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
45
|
+
|
|
46
|
+
Alternative method to decrypt_3(String, String, String, String, Number), which allows using a key in the keystore for the decryption.
|
|
47
|
+
|
|
48
|
+
### decryptBytes
|
|
49
|
+
|
|
50
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
51
|
+
|
|
52
|
+
Lower-level decryption API.
|
|
53
|
+
|
|
54
|
+
### decryptBytes
|
|
55
|
+
|
|
56
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
57
|
+
|
|
58
|
+
Alternative method to decryptBytes(Bytes, String, String, String, Number), which allows to use a key in the keystore for the decryption.
|
|
59
|
+
|
|
60
|
+
### decryptBytes
|
|
61
|
+
|
|
62
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
63
|
+
|
|
64
|
+
Lower-level decryption API.
|
|
65
|
+
|
|
66
|
+
### decryptBytes
|
|
67
|
+
|
|
68
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
69
|
+
|
|
70
|
+
Alternative method to decryptBytes_3(Bytes, String, String, String, Number), which allows to use a key in the keystore for the decryption.
|
|
71
|
+
|
|
72
|
+
### encrypt
|
|
73
|
+
|
|
74
|
+
**Signature:** `encrypt(message : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
75
|
+
|
|
76
|
+
Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters.
|
|
77
|
+
|
|
78
|
+
### encrypt
|
|
79
|
+
|
|
80
|
+
**Signature:** `encrypt(message : String, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
81
|
+
|
|
82
|
+
Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters.
|
|
83
|
+
|
|
84
|
+
### encrypt
|
|
85
|
+
|
|
86
|
+
**Signature:** `encrypt(message : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
87
|
+
|
|
88
|
+
Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters.
|
|
89
|
+
|
|
90
|
+
### encrypt
|
|
91
|
+
|
|
92
|
+
**Signature:** `encrypt(message : String, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
93
|
+
|
|
94
|
+
Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters.
|
|
95
|
+
|
|
96
|
+
### encryptBytes
|
|
97
|
+
|
|
98
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
99
|
+
|
|
100
|
+
Lower-level encryption API.
|
|
101
|
+
|
|
102
|
+
### encryptBytes
|
|
103
|
+
|
|
104
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
105
|
+
|
|
106
|
+
Alternative method to encryptBytes(Bytes, String, String, String, Number), which allows to use a key in the keystore for the encryption.
|
|
107
|
+
|
|
108
|
+
### encryptBytes
|
|
109
|
+
|
|
110
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
111
|
+
|
|
112
|
+
Lower-level encryption API.
|
|
113
|
+
|
|
114
|
+
### encryptBytes
|
|
115
|
+
|
|
116
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
117
|
+
|
|
118
|
+
Alternative method to encryptBytes_3(Bytes, String, String, String, Number), which allows to use a key in the keystore for the encryption.
|
|
119
|
+
|
|
120
|
+
## Constructor Detail
|
|
121
|
+
|
|
122
|
+
## Method Detail
|
|
123
|
+
|
|
124
|
+
## Method Details
|
|
125
|
+
|
|
126
|
+
### decrypt
|
|
127
|
+
|
|
128
|
+
**Signature:** `decrypt(base64Msg : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
129
|
+
|
|
130
|
+
**Description:** Decrypts the message using the given parameters. See Cipher.decrypt(String, String, String, String, Number) for full documentation.
|
|
131
|
+
|
|
132
|
+
**API Versioned:**
|
|
133
|
+
|
|
134
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
135
|
+
|
|
136
|
+
**Parameters:**
|
|
137
|
+
|
|
138
|
+
- `base64Msg`: the base64 encoded data to decrypt
|
|
139
|
+
- `key`: The decryption key
|
|
140
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
141
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
142
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
143
|
+
|
|
144
|
+
**Returns:**
|
|
145
|
+
|
|
146
|
+
the original plaintext message.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### decrypt
|
|
151
|
+
|
|
152
|
+
**Signature:** `decrypt(base64Msg : String, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
153
|
+
|
|
154
|
+
**Description:** Alternative method to decrypt(String, String, String, String, Number), which allows using a key in the keystore for the decryption. See Cipher.decrypt(String, KeyRef, String, String, Number) for full documentation.
|
|
155
|
+
|
|
156
|
+
**API Versioned:**
|
|
157
|
+
|
|
158
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
159
|
+
|
|
160
|
+
**Parameters:**
|
|
161
|
+
|
|
162
|
+
- `base64Msg`: the base64 encoded data to decrypt
|
|
163
|
+
- `privateKey`: A reference to a private key in the key store.
|
|
164
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
165
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
166
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
167
|
+
|
|
168
|
+
**Returns:**
|
|
169
|
+
|
|
170
|
+
the original plaintext message.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### decrypt
|
|
175
|
+
|
|
176
|
+
**Signature:** `decrypt(base64Msg : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
177
|
+
|
|
178
|
+
**Description:** Decrypts the message using the given parameters. See Cipher.decrypt_3(String, String, String, String, Number) for full documentation.
|
|
179
|
+
|
|
180
|
+
**API Versioned:**
|
|
181
|
+
|
|
182
|
+
From version 16.2. Does not use a default initialization vector.
|
|
183
|
+
|
|
184
|
+
**Parameters:**
|
|
185
|
+
|
|
186
|
+
- `base64Msg`: the base64 encoded data to decrypt
|
|
187
|
+
- `key`: The decryption key
|
|
188
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
189
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
190
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
191
|
+
|
|
192
|
+
**Returns:**
|
|
193
|
+
|
|
194
|
+
the original plaintext message.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### decrypt
|
|
199
|
+
|
|
200
|
+
**Signature:** `decrypt(base64Msg : String, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
201
|
+
|
|
202
|
+
**Description:** Alternative method to decrypt_3(String, String, String, String, Number), which allows using a key in the keystore for the decryption. See Cipher.decrypt_3(String, KeyRef, String, String, Number) for full documentation.
|
|
203
|
+
|
|
204
|
+
**API Versioned:**
|
|
205
|
+
|
|
206
|
+
From version 16.2. Does not use a default initialization vector.
|
|
207
|
+
|
|
208
|
+
**Parameters:**
|
|
209
|
+
|
|
210
|
+
- `base64Msg`: the base64 encoded data to decrypt
|
|
211
|
+
- `privateKey`: A reference to a private key in the key store.
|
|
212
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
213
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
214
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
215
|
+
|
|
216
|
+
**Returns:**
|
|
217
|
+
|
|
218
|
+
the original plaintext message.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
### decryptBytes
|
|
223
|
+
|
|
224
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
225
|
+
|
|
226
|
+
**Description:** Lower-level decryption API. Decrypts the passed bytes using the specified key and applying the transformations described by the specified parameters. See Cipher.decryptBytes(Bytes, String, String, String, Number) for full documentation.
|
|
227
|
+
|
|
228
|
+
**API Versioned:**
|
|
229
|
+
|
|
230
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
231
|
+
|
|
232
|
+
**Parameters:**
|
|
233
|
+
|
|
234
|
+
- `encryptedBytes`: The bytes to decrypt.
|
|
235
|
+
- `key`: The key to use for decryption.
|
|
236
|
+
- `transformation`: The transformation used to originally encrypt.
|
|
237
|
+
- `saltOrIV`: the salt or IV to use.
|
|
238
|
+
- `iterations`: the iterations to use.
|
|
239
|
+
|
|
240
|
+
**Returns:**
|
|
241
|
+
|
|
242
|
+
The decrypted bytes.
|
|
243
|
+
|
|
244
|
+
**See Also:**
|
|
245
|
+
|
|
246
|
+
decrypt(String, String, String, String, Number)
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
### decryptBytes
|
|
251
|
+
|
|
252
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
253
|
+
|
|
254
|
+
**Description:** Alternative method to decryptBytes(Bytes, String, String, String, Number), which allows to use a key in the keystore for the decryption. See Cipher.decryptBytes(Bytes, KeyRef, String, String, Number) for full documentation.
|
|
255
|
+
|
|
256
|
+
**API Versioned:**
|
|
257
|
+
|
|
258
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
259
|
+
|
|
260
|
+
**Parameters:**
|
|
261
|
+
|
|
262
|
+
- `encryptedBytes`: The bytes to decrypt.
|
|
263
|
+
- `privateKey`: A reference to a private key in the key store.
|
|
264
|
+
- `transformation`: The transformation used to originally encrypt.
|
|
265
|
+
- `saltOrIV`: the salt or IV to use.
|
|
266
|
+
- `iterations`: the iterations to use.
|
|
267
|
+
|
|
268
|
+
**Returns:**
|
|
269
|
+
|
|
270
|
+
The decrypted bytes.
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
### decryptBytes
|
|
275
|
+
|
|
276
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
277
|
+
|
|
278
|
+
**Description:** Lower-level decryption API. Decrypts the passed bytes using the specified key and applying the transformations described by the specified parameters. See Cipher.decryptBytes_3(Bytes, String, String, String, Number) for full documentation.
|
|
279
|
+
|
|
280
|
+
**API Versioned:**
|
|
281
|
+
|
|
282
|
+
From version 16.2. Does not use a default initialization vector.
|
|
283
|
+
|
|
284
|
+
**Parameters:**
|
|
285
|
+
|
|
286
|
+
- `encryptedBytes`: The bytes to decrypt.
|
|
287
|
+
- `key`: The key to use for decryption.
|
|
288
|
+
- `transformation`: The transformation used to originally encrypt.
|
|
289
|
+
- `saltOrIV`: the salt or IV to use.
|
|
290
|
+
- `iterations`: the iterations to use.
|
|
291
|
+
|
|
292
|
+
**Returns:**
|
|
293
|
+
|
|
294
|
+
The decrypted bytes.
|
|
295
|
+
|
|
296
|
+
**See Also:**
|
|
297
|
+
|
|
298
|
+
decrypt_3(String, String, String, String, Number)
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
### decryptBytes
|
|
303
|
+
|
|
304
|
+
**Signature:** `decryptBytes(encryptedBytes : Bytes, privateKey : KeyRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
305
|
+
|
|
306
|
+
**Description:** Alternative method to decryptBytes_3(Bytes, String, String, String, Number), which allows to use a key in the keystore for the decryption. See Cipher.decryptBytes_3(Bytes, KeyRef, String, String, Number) for full documentation.
|
|
307
|
+
|
|
308
|
+
**API Versioned:**
|
|
309
|
+
|
|
310
|
+
From version 16.2. Does not use a default initialization vector.
|
|
311
|
+
|
|
312
|
+
**Parameters:**
|
|
313
|
+
|
|
314
|
+
- `encryptedBytes`: The bytes to decrypt.
|
|
315
|
+
- `privateKey`: A reference to a private key in the key store.
|
|
316
|
+
- `transformation`: The transformation used to originally encrypt.
|
|
317
|
+
- `saltOrIV`: the salt or IV to use.
|
|
318
|
+
- `iterations`: the iterations to use.
|
|
319
|
+
|
|
320
|
+
**Returns:**
|
|
321
|
+
|
|
322
|
+
The decrypted bytes.
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
### encrypt
|
|
327
|
+
|
|
328
|
+
**Signature:** `encrypt(message : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
329
|
+
|
|
330
|
+
**Description:** Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters. See Cipher.encrypt(String, String, String, String, Number) for full documentation.
|
|
331
|
+
|
|
332
|
+
**API Versioned:**
|
|
333
|
+
|
|
334
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
335
|
+
|
|
336
|
+
**Parameters:**
|
|
337
|
+
|
|
338
|
+
- `message`: Message to encrypt (this will be converted to UTF-8 first)
|
|
339
|
+
- `key`: Key
|
|
340
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format
|
|
341
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm
|
|
342
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
343
|
+
|
|
344
|
+
**Returns:**
|
|
345
|
+
|
|
346
|
+
Base64-encoded encrypted data
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
### encrypt
|
|
351
|
+
|
|
352
|
+
**Signature:** `encrypt(message : String, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
353
|
+
|
|
354
|
+
**Description:** Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters. See Cipher.encrypt(String, CertificateRef, String, String, Number) for full documentation.
|
|
355
|
+
|
|
356
|
+
**API Versioned:**
|
|
357
|
+
|
|
358
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
359
|
+
|
|
360
|
+
**Parameters:**
|
|
361
|
+
|
|
362
|
+
- `message`: Message to encrypt (this will be converted to UTF-8 first)
|
|
363
|
+
- `publicKey`: A reference to a public key in the key store
|
|
364
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format
|
|
365
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm
|
|
366
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
367
|
+
|
|
368
|
+
**Returns:**
|
|
369
|
+
|
|
370
|
+
Base64-encoded encrypted data
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
### encrypt
|
|
375
|
+
|
|
376
|
+
**Signature:** `encrypt(message : String, key : String, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
377
|
+
|
|
378
|
+
**Description:** Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters. See Cipher.encrypt_3(String, String, String, String, Number) for full documentation.
|
|
379
|
+
|
|
380
|
+
**API Versioned:**
|
|
381
|
+
|
|
382
|
+
From version 16.2. Does not use a default initialization vector.
|
|
383
|
+
|
|
384
|
+
**Parameters:**
|
|
385
|
+
|
|
386
|
+
- `message`: Message to encrypt (this will be converted to UTF-8 first)
|
|
387
|
+
- `key`: Key
|
|
388
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format
|
|
389
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm
|
|
390
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
391
|
+
|
|
392
|
+
**Returns:**
|
|
393
|
+
|
|
394
|
+
Base64-encoded encrypted data
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
### encrypt
|
|
399
|
+
|
|
400
|
+
**Signature:** `encrypt(message : String, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : String`
|
|
401
|
+
|
|
402
|
+
**Description:** Encrypt the passed message by using the specified key and applying the transformations described by the specified parameters. See Cipher.encrypt_3(String, CertificateRef, String, String, Number) for full documentation.
|
|
403
|
+
|
|
404
|
+
**API Versioned:**
|
|
405
|
+
|
|
406
|
+
From version 16.2. Does not use a default initialization vector.
|
|
407
|
+
|
|
408
|
+
**Parameters:**
|
|
409
|
+
|
|
410
|
+
- `message`: Message to encrypt (this will be converted to UTF-8 first)
|
|
411
|
+
- `publicKey`: A reference to a public key in the key store
|
|
412
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format
|
|
413
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm
|
|
414
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key, if applicable
|
|
415
|
+
|
|
416
|
+
**Returns:**
|
|
417
|
+
|
|
418
|
+
Base64-encoded encrypted data
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
### encryptBytes
|
|
423
|
+
|
|
424
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
425
|
+
|
|
426
|
+
**Description:** Lower-level encryption API. Encrypts the passed bytes by using the specified key and applying the transformations described by the specified parameters. See Cipher.encryptBytes(Bytes, String, String, String, Number) for full documentation.
|
|
427
|
+
|
|
428
|
+
**API Versioned:**
|
|
429
|
+
|
|
430
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
431
|
+
|
|
432
|
+
**Parameters:**
|
|
433
|
+
|
|
434
|
+
- `messageBytes`: The bytes to encrypt.
|
|
435
|
+
- `key`: The key to use for encryption.
|
|
436
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
437
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
438
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key.
|
|
439
|
+
|
|
440
|
+
**Returns:**
|
|
441
|
+
|
|
442
|
+
the encrypted bytes.
|
|
443
|
+
|
|
444
|
+
**See Also:**
|
|
445
|
+
|
|
446
|
+
encrypt(String, String, String, String, Number)
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
### encryptBytes
|
|
451
|
+
|
|
452
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
453
|
+
|
|
454
|
+
**Description:** Alternative method to encryptBytes(Bytes, String, String, String, Number), which allows to use a key in the keystore for the encryption. See Cipher.encryptBytes(Bytes, CertificateRef, String, String, Number) for full documentation.
|
|
455
|
+
|
|
456
|
+
**API Versioned:**
|
|
457
|
+
|
|
458
|
+
From version 15.5. No longer available as of version 16.2. Requires Base64-encryption for the salt parameter.
|
|
459
|
+
|
|
460
|
+
**Parameters:**
|
|
461
|
+
|
|
462
|
+
- `messageBytes`: The bytes to encrypt.
|
|
463
|
+
- `publicKey`: A reference to a public key in the key store.
|
|
464
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
465
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
466
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key.
|
|
467
|
+
|
|
468
|
+
**Returns:**
|
|
469
|
+
|
|
470
|
+
the encrypted bytes.
|
|
471
|
+
|
|
472
|
+
**See Also:**
|
|
473
|
+
|
|
474
|
+
encrypt(String, CertificateRef, String, String, Number)
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
### encryptBytes
|
|
479
|
+
|
|
480
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, key : String, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
481
|
+
|
|
482
|
+
**Description:** Lower-level encryption API. Encrypts the passed bytes by using the specified key and applying the transformations described by the specified parameters. See Cipher.encryptBytes_3(Bytes, String, String, String, Number) for full documentation.
|
|
483
|
+
|
|
484
|
+
**API Versioned:**
|
|
485
|
+
|
|
486
|
+
From version 16.2. Does not use a default initialization vector.
|
|
487
|
+
|
|
488
|
+
**Parameters:**
|
|
489
|
+
|
|
490
|
+
- `messageBytes`: The bytes to encrypt.
|
|
491
|
+
- `key`: The key to use for encryption.
|
|
492
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
493
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
494
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key.
|
|
495
|
+
|
|
496
|
+
**Returns:**
|
|
497
|
+
|
|
498
|
+
the encrypted bytes.
|
|
499
|
+
|
|
500
|
+
**See Also:**
|
|
501
|
+
|
|
502
|
+
encrypt_3(String, String, String, String, Number)
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
506
|
+
### encryptBytes
|
|
507
|
+
|
|
508
|
+
**Signature:** `encryptBytes(messageBytes : Bytes, publicKey : CertificateRef, transformation : String, saltOrIV : String, iterations : Number) : Bytes`
|
|
509
|
+
|
|
510
|
+
**Description:** Alternative method to encryptBytes_3(Bytes, String, String, String, Number), which allows to use a key in the keystore for the encryption. See Cipher.encryptBytes_3(Bytes, CertificateRef, String, String, Number) for full documentation.
|
|
511
|
+
|
|
512
|
+
**API Versioned:**
|
|
513
|
+
|
|
514
|
+
From version 16.2. Does not use a default initialization vector.
|
|
515
|
+
|
|
516
|
+
**Parameters:**
|
|
517
|
+
|
|
518
|
+
- `messageBytes`: The bytes to encrypt.
|
|
519
|
+
- `publicKey`: A reference to a public key in the key store.
|
|
520
|
+
- `transformation`: Transformation in "algorithm/mode/padding" format.
|
|
521
|
+
- `saltOrIV`: Initialization value appropriate for the algorithm.
|
|
522
|
+
- `iterations`: The number of passes to make when turning a passphrase into a key.
|
|
523
|
+
|
|
524
|
+
**Returns:**
|
|
525
|
+
|
|
526
|
+
the encrypted bytes.
|
|
527
|
+
|
|
528
|
+
**See Also:**
|
|
529
|
+
|
|
530
|
+
encrypt_3(String, CertificateRef, String, String, Number)
|
|
531
|
+
|
|
532
|
+
---
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
## Package: dw.crypto
|
|
2
|
+
|
|
3
|
+
# Class WeakMac
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.crypto.WeakMac
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
This API provides access to Deprecated algorithms. See Mac for full documentation. WeakMac is simply a drop-in replacement that only supports deprecated algorithms. This is helpful when you need to deal with weak algorithms for backward compatibility purposes, but Mac should always be used for new development and for anything intended to be secure. This class provides the functionality of a "Message Authentication Code" (MAC) algorithm. A MAC provides a way to check the integrity of information transmitted over or stored in an unreliable medium, based on a secret key. Typically, message authentication codes are used between two parties that share a secret key in order to validate information transmitted between these parties. A MAC mechanism that is based on cryptographic hash functions is referred to as HMAC. HMAC can be used with any cryptographic hash function, e.g., SHA256, in combination with a secret shared key. HMAC is specified in RFC 2104. Note: this class handles sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
|
|
13
|
+
|
|
14
|
+
## Constants
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
## Constructor Summary
|
|
19
|
+
|
|
20
|
+
WeakMac(algorithm : String) Construct a Mac encryption instance with the specified algorithm name.
|
|
21
|
+
|
|
22
|
+
## Method Summary
|
|
23
|
+
|
|
24
|
+
### digest
|
|
25
|
+
|
|
26
|
+
**Signature:** `digest(input : String, key : String) : Bytes`
|
|
27
|
+
|
|
28
|
+
Computes the hash value for the passed string input using the passed secret key.
|
|
29
|
+
|
|
30
|
+
### digest
|
|
31
|
+
|
|
32
|
+
**Signature:** `digest(input : String, key : Bytes) : Bytes`
|
|
33
|
+
|
|
34
|
+
Computes the hash value for the passed string input using the passed secret key.
|
|
35
|
+
|
|
36
|
+
### digest
|
|
37
|
+
|
|
38
|
+
**Signature:** `digest(input : Bytes, key : Bytes) : Bytes`
|
|
39
|
+
|
|
40
|
+
Computes the hash value for the passed bytes input using the passed secret key.
|
|
41
|
+
|
|
42
|
+
## Constructor Detail
|
|
43
|
+
|
|
44
|
+
## Method Detail
|
|
45
|
+
|
|
46
|
+
## Method Details
|
|
47
|
+
|
|
48
|
+
### digest
|
|
49
|
+
|
|
50
|
+
**Signature:** `digest(input : String, key : String) : Bytes`
|
|
51
|
+
|
|
52
|
+
**Description:** Computes the hash value for the passed string input using the passed secret key. Given input and the given key will be first converted with UTF-8 encoding into a byte array. The resulting hash is typically converted with base64 back into a string.
|
|
53
|
+
|
|
54
|
+
**Parameters:**
|
|
55
|
+
|
|
56
|
+
- `input`: A string to calculate a RFC 2104 compliant HMAC hash value for.
|
|
57
|
+
- `key`: The secret key ready for use with the algorithm. The key's format depends on the chosen algorithm and the keys are assumed to be correctly formulated for the algorithm used, for example that the lengths are correct. Keys are not checked for validity. Only such keys that have no key parameters associated with them.
|
|
58
|
+
|
|
59
|
+
**Returns:**
|
|
60
|
+
|
|
61
|
+
The resulting hash value as bytes.
|
|
62
|
+
|
|
63
|
+
**Throws:**
|
|
64
|
+
|
|
65
|
+
IllegalArgumentException - if algorithm is not null and the specified algorithm name is not supported.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### digest
|
|
70
|
+
|
|
71
|
+
**Signature:** `digest(input : String, key : Bytes) : Bytes`
|
|
72
|
+
|
|
73
|
+
**Description:** Computes the hash value for the passed string input using the passed secret key. Given input will be first converted with UTF-8 encoding into a byte array. The resulting hash is typically converted with base64 back into a string.
|
|
74
|
+
|
|
75
|
+
**Parameters:**
|
|
76
|
+
|
|
77
|
+
- `input`: A string to calculate a RFC 2104 compliant HMAC hash value for.
|
|
78
|
+
- `key`: The secret key as bytes ready for use with the algorithm. The key's format depends on the chosen algorithm and the keys are assumed to be correctly formulated for the algorithm used, for example that the lengths are correct. Keys are not checked for validity. Only such keys that have no key parameters associated with them.
|
|
79
|
+
|
|
80
|
+
**Returns:**
|
|
81
|
+
|
|
82
|
+
The resulting hash value as bytes.
|
|
83
|
+
|
|
84
|
+
**Throws:**
|
|
85
|
+
|
|
86
|
+
IllegalArgumentException - if algorithm is not null and the specified algorithm name is not supported.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### digest
|
|
91
|
+
|
|
92
|
+
**Signature:** `digest(input : Bytes, key : Bytes) : Bytes`
|
|
93
|
+
|
|
94
|
+
**Description:** Computes the hash value for the passed bytes input using the passed secret key.
|
|
95
|
+
|
|
96
|
+
**Parameters:**
|
|
97
|
+
|
|
98
|
+
- `input`: The bytes to calculate a RFC 2104 compliant HMAC hash value.
|
|
99
|
+
- `key`: The secret key as byte array ready for use with the algorithm. The key's format depends on the chosen algorithm and the keys are assumed to be correctly formulated for the algorithm used, for example that the lengths are correct. Keys are not checked for validity. Only such keys that have no key parameters associated with them.
|
|
100
|
+
|
|
101
|
+
**Returns:**
|
|
102
|
+
|
|
103
|
+
The resulting hash value as bytes.
|
|
104
|
+
|
|
105
|
+
**Throws:**
|
|
106
|
+
|
|
107
|
+
IllegalArgumentException - if algorithm is not null and the specified algorithm name is not supported.
|
|
108
|
+
|
|
109
|
+
---
|