From 335cdd1a2501a2cd3ba40ab505510f25b52f95a1 Mon Sep 17 00:00:00 2001 From: Till Neunast Date: Fri, 22 Jun 2018 16:29:15 +1200 Subject: [PATCH] Modify docs --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8ba6cce..29b76fd 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ The plugin provides * [Pre-Processors](http://jmeter.apache.org/usermanual/component_reference.html#preprocessors) for adding digital signature or encryption to a sampler's payload (based on a certificate from a given keystore), * a Pre-Processor for adding a Username Token to a sampler's payload, +* a Pre-Processor for adding a Timestamp to a sampler's payload, * a [Post-Processor](http://jmeter.apache.org/usermanual/component_reference.html#postprocessors) for decrypting a sampler's response. @@ -80,16 +81,31 @@ depending on what the endpoint's WSDL defines. The "Parts to Sign"/"Parts to Encrypt" are empty by default, however, that results in the SOAP Body content to be signed or encrypted. -Suppose the Timestamp element was to be included in the signature or encryption in addition to the Body element and the Element with ID 1234567, they would have to be listed as follows: +Suppose the Timestamp element was to be included in the signature or encryption in addition to the Body element, both would have to be listed as follows: |ID|Name|Namespace|Encode| -|----|----|---------|------| -| |Body|http://schemas.xmlsoap.org/soap/envelope/ | | -| |Timestamp|http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd | | -| 1234567|| | | +|--|----|---------|------| +| |Body|http://schemas.xmlsoap.org/soap/envelope/ | | +| |Timestamp|http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd | | +If there are multiple XML elements with the same name and namespace, the element's ID attribute can be used to determine which element is to be signed/encrypted. If the ID is specified, the Name and Namespace are not necessary and will not be used. -*Note that the Timestamp element is not inserted by the Pre-Processor but has to be present in the payload.* + +Example: + +```xml + + + this should be encrypted + this is not to be encrypted + another one + + +``` + +|ID|Name|Namespace|Encode| +|--|----|---------|------| +|e1| | | | Encode is only relevant for encryption and can be one of the following: * "Element" (default): The entire XML element is encrypted.