Skip to content

Instantly share code, notes, and snippets.

@gmazza
Last active October 7, 2015 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmazza/3191480 to your computer and use it in GitHub Desktop.
Save gmazza/3191480 to your computer and use it in GitHub Desktop.
// Metro WS-Trust calls using WS-SecureConversation between WSC and WSP instead of SAMLAssertion
// Results below via Wireshark (http://www.jroller.com/gmazza/entry/soap_calls_over_wireshark)
// Technical background : http://www.ibm.com/developerworks/java/library/j-jws15/index.html
// Tutorial: http://www.jroller.com/gmazza/entry/metro_sts_tutorial
// First step is the Metadata-Exchange call to get the WSDL (omitted for brevity but see here:
https://gist.github.com/2790055#file_metro_wsc_metadata_request.xml for an example.)
// 1. SAML Token Request
POST /DoubleItSTS/STS HTTP/1.1
Accept: text/xml, multipart/related
Content-Type: text/xml;
charset=utf-8
SOAPAction: "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue"
User-Agent:
Metro/2.2 (branches/2.2-7015; 2012-02-20T20:31:25+0000) JAXWS-RI/2.2.6 JAXWS/2.2
svn-revision#unknown
Host: localhost:8080
Connection: keep-alive
Content-Length: 9935
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5007">http://localhost:8080/DoubleItSTS/STS
</To>
<Action xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5006">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue
</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<FaultTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5003">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</FaultTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">uuid:e48e6afc-4ab1-4df8-9d78-b636c6d7f1f1
</MessageID>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<xenc:EncryptedKey xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_5002">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>EMAILADDRESS=tomtoken@sample.com, CN=Tom Token,
O=Sample STS Key -- NOT FOR PRODUCTION USE, L=Baltimore,
ST=Maryland, C=US</ds:X509IssuerName>
<ds:X509SerialNumber>13809927965515954458</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>Q9ZZkUA+Ttou9A9h1JMGldxZpop89gsMY7xSL/9uNubC5Z/Xd3i7EgShqvzbKHpgvkB6CswAT+G6q4CRGcGjEn9yVF6WI+BDiZYUXTGPGfgn3eMtOiIZIOXAy2fcmstMeY4g3Z/Cf+9DkDHfBGDEjrx+yQxvsmQZaWuRGhZfAD8=
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedKey>
<xenc:ReferenceList xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5009" />
<xenc:DataReference URI="#_5010" />
</xenc:ReferenceList>
<xenc:EncryptedData xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_5010"
Type="http://www.w3.org/2001/04/xmlenc#Element">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="KeyInfoType">
<wsse:SecurityTokenReference
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey">
<wsse:Reference URI="#_5002"
ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>qmshrUdSsysdAnXI5E78yvQzNxRjZNTGkTdSi2pb/2GzaUvRpcjfgMK9yHRgbtagtSMqDd/QJu54oerbFOYQ/IRV4wdNmAKL+uydtePP6X6LKwNHlDsBGN4ocrgLf8X2vVpaKtzN1Vl3iG2eysddv37gpzILM7hnwt0BWWwxmwheP7/DVijGA1wC97HewA0nWZFkNyz/7fpkzJmdUlysqfVUmbty2zM3X1q2R6Tf5fs8b+TKgLfKURoFtGtBjqUaO68QXFu3CP1sH2vKfiN4Z4k+Ug5itsMl0ndoW7+5e2VUvHmktVOD1UiEBv1qSVuThYTE0OMWNTFv/+K3WAGqE5gVbKQ7j6YPHpz4aBg+ZMkSbde6+UE2cRWwLNPwUd05i3iXfamvQ3C3PlMZS14HB0kDeqG0jKgl6R8tgumUqX4/oES56bJf61H5rXFxDwf35oegNm/evCpLwCyNfICCJpTi9qH2/l6cvKxa97eA2tP9xp/ZtqD1difAviKr1h+5r9teWfl647rg2ph1wlX0qmVEI0tOqgFtSLsHdSBsA3lTjvdPw2VeqVXa0dj3B6Scr9zeO4lF+zx6s4ThpAWm3RW9AaEkugCjzLvCtGlLQykNfXHnigiOfgvjz9TsXoHj
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
<ds:Signature xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5003">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>oYqr83ua4Fn2DfzbrAm8dRG3HPI=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>GAEFnQNXGT3GQoLM1EXy/X5nwNo=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>jZlSD4DKyfCtsoUmhQgapcilrIQ=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>Co0pbO4ta72p7aN0rIPM4EU2y0I=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5007">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>ixNlvWkr3bZvdF0oyIO4c7fmkBw=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5008">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>CXnQGYhPUjpBgXfTyA4ND/BPRB4=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_3">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>/oRs4Tw/2MmgO1DcLgGubdW8rnI=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#uuid_84700b36-db44-40db-ac23-c3b27a0c9ef2">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>y7iG+6Np7rk43kHmWOxZKziLcOU=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>kMpFfsgx+tiYV89735FmDjDm7XU=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference wsu:Id="uuid_39e15955-930b-407a-9a80-3d917670e8e9"
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey">
<wsse:Reference URI="#_5002"
ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5008">
<xenc:EncryptedData xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_5009"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey">
<wsse:Reference URI="#_5002"
ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>6Xb1uwTCP+8ylP976N0YOW70j/Bvqz8uKQwCjNXOksj8wiHgPYXeqJa7i2eZFmqIh1oZjTiST/4FKt0M98z7/UDGZxjhNr0y957hMLQsyGCZxJ0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kcdtht4RiCFC3sHdz3PCRSZk7Wie32ec5JA9ffmAjjQYVOcnKMG6E+CNQWa4/+h/2mQ+D1twUQ2fNVoBte4v0Ra7hxT+vngSUrSZMLu/SJPuC5yBMir3tibL0fwMqxdGjm/wo1esFDu0IzY0pxIYhCLG7WmtHvPchcFU03j4BBl+AtSvQzxIRKsttGNUNuGRIKH/cVQc7vca9lnUcxUaMJ8tRxespL4xaeTnQYgDQIIAchzdXQ==
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 2. SAML Token Response
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding:
chunked
Date: Fri, 27 Jul 2012 19:29:13 GMT
2000
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#">
<S:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
S:mustUnderstand="1" wsu:Id="_5003">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5002">uuid:edbadcaa-2309-435a-8355-da8c1a00308e
</MessageID>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">uuid:e48e6afc-4ab1-4df8-9d78-b636c6d7f1f1
</RelatesTo>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">http://www.w3.org/2005/08/addressing/anonymous
</To>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<xenc:ReferenceList xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5007" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5002">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>A7cThFo0Q6u41wq2y6tE1KhBBTM=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5003">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>e0nOtObSKc44gQdkel4fJR2+XAY=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>i11WO92cYQW9nT1EOLca0mfsp9A=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>Nd/8wVmBdLowQKMblBRYK+6xcjA=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>51m3okqs+ODDBDFaoF8Hxd26kZg=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_3">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>/oRs4Tw/2MmgO1DcLgGubdW8rnI=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>vNGA9h4AGQTLrW7TeFcWMaWiaAc=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference>
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKeySHA1"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">rdcSpRnDs+OD2asKgZ0wwzsjarg=</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5006">
<xenc:EncryptedData xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_5007"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKeySHA1"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">rdcSpRnDs+OD2asKgZ0wwzsjarg=</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>hgoGWvR40XCOqTxmUF/RwoaHiIxIAUrerH3R25AFtiYRJ6Px3DLJWmdHVV6wZY8kovLh1Avl2SfFemiiw7eU6y0B3jBYyKOS2kMH4F7BDDNXLkw30d1SS32n9bQbZd2I08Yj68sLdpgEln5lEyYzjf+pojBikdzr3enoUEgMKjC+S98p0AQCYoUl6IJA2lDeG7O5H56xbZOLraPaB07Tj7SUGr/JCq32yquejLUS/1vhNMNv1zhRoLY/7naNpcORXpioNyQujqBBal8MVW65BEYEgMdgYD3XHCLUgKG5wORiF7uIssd0J9srt8ahEfxeHiaxWXWSnPeV1wdPxueR1L2fWRzyirtsvraA5DYwue1osJo8ZryXDBaTmRc9Au0BxERHwAd5H2lK13yo3st/nN/shpzrgXCtkztqsp71xapDNygQ2m1BDGlaT9J0m4Qx/uzjInE380gmcsR4TJNYa5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Cyt1YnqQKNBiOjk6xp0RsGXXfoGs3ZXJsNAUllkH8D2P9+IE7v2Uuv03dCKr1s0WiIsA4RRqiJ4JOERpfj8RjQfPcmcA0Cq6nIFsJe6L6m0IREA4P2fip3E/Yokt82R5jGQUKXDABRaBqMMl/qyBD5JUcrJ2Qoipqn1joYNH7O9HLUk7GmSYYULh9GsmZVMLam41DXrMr5FFKIYkswG1DSTiBZtsZQVfPDH1y1V8mu4kfowW/YcmGYlPnpeqwqiP/EeyO84Jwe1XPdc8ZSOrXMAL3LJTS0PmiitokMmCpnqD8Qss9TqHBLzZKnN41zJUPZukQjLaiLydkKWwm9tomYHzjLPysxqtR2fYWzGeXFVzlcyfNyDI9LKZmMQOndLuSqjBoupSGn3MXhfBB4q1CT7KBLnILbmw+j/NwbZb02b4R5VLcLLXslZ/57QbP/C/b5DzZ+8p3aLLqOnutNgz9QIFWmbiQX/6Il4tBKR4H/5CpimBygvp8tSPewsGQ0yfSeAcLXkJNrBT6B8l8y6/Dr3OEqAVa23Y/ZsY2Mk3A5d6lfiR6YchjS0O
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 3. SCT request: This is the only time the WSC sends the SAML assertion to the WSP to authenticate; for
subsequent SOAP calls the SecurityContextToken (SCT) is passed from the WSC to WSP instead.
POST /doubleit/services/doubleit HTTP/1.1
Accept: text/xml, multipart/related
Content-Type: text/xml;
charset=utf-8
SOAPAction: "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT"
User-Agent:
Metro/2.2 (branches/2.2-7015; 2012-02-20T20:31:25+0000) JAXWS-RI/2.2.6 JAXWS/2.2
svn-revision#unknown
Host: localhost:8080
Connection: keep-alive
Content-Length: 10739
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5006">http://localhost:8080/doubleit/services/doubleit
</To>
<Action xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT
</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<FaultTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5002">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</FaultTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5003">uuid:493ae27e-3fe5-4fc9-99e1-653a71441e14
</MessageID>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
AssertionID="uuid-cc1a46be-a78c-4a7b-9edb-b9d806dcbdbf" IssueInstant="2012-07-27T19:29:14.637Z"
Issuer="DoubleItSTSIssuer" MajorVersion="1" MinorVersion="1">
<saml:Conditions NotBefore="2012-07-27T19:29:14.637Z" NotOnOrAfter="2012-07-27T19:29:50.637Z">
<saml:AudienceRestrictionCondition>
<saml:Audience>http://localhost:8080/doubleit/services/doubleit
</saml:Audience>
</saml:AudienceRestrictionCondition>
</saml:Conditions>
<saml:Advice />
<saml:AttributeStatement>
<saml:Subject>
<saml:NameIdentifier NameQualifier="http://sun.com">CN=alice
</saml:NameIdentifier>
<saml:SubjectConfirmation>
<saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:holder-of-key
</saml:ConfirmationMethod>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:ns5="http://www.w3.org/2001/XMLSchema-instance" ns5:type="KeyInfoType">
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
<ds:KeyInfo>
<wsse:SecurityTokenReference
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">UIqxhbscD43w9J953IzaFDUj/No=
</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>j+2wJszQ61mDHi0noQ5o72A7dRPS9KuU2DFuwGtvQlLRuxCORvUNMzykLBzNfpr2IMw7B2K7KcDQ
z98V4APnhe5A//aBuML6inBkuol4WAOTUQ1E+jowvtKzIjlbAtP0elyMG7tWsf+4GbNUk56babTk
h2UdQnDr4485pWyX4hs=
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedKey>
</ds:KeyInfo>
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Attribute AttributeName="token-requestor"
AttributeNamespace="http://sun.com">
<saml:AttributeValue>authenticated</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#uuid-cc1a46be-a78c-4a7b-9edb-b9d806dcbdbf">
<ds:Transforms>
<ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>lMa7Pwo7awl6bbG0PB8Cv+Gjbac=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>eHWBahs7vRaAvbshShS+601Uy9H0DISVexPp1fxKO0ngqIF13qygruQkraa8azX/ZSWQRwYfrA9z
eugQzmXj6jT1wZsjnLZH2yPwayOhg/UyklAAqStFcfG2C91FFX7tj+W5Zg3XsSlx6yCKTQrFenAp
czQQnZVbo0vJX3957f8=
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIDyDCCAzGgAwIBAgIJAL+muFEGT7kaMA0GCSqGSIb3DQEBBQUAMIGfMQswCQYDVQQGEwJVUzER
MA8GA1UECBMITWFyeWxhbmQxEjAQBgNVBAcTCUJhbHRpbW9yZTExMC8GA1UEChMoU2FtcGxlIFNU
UyBLZXkgLS0gTk9UIEZPUiBQUk9EVUNUSU9OIFVTRTESMBAGA1UEAxMJVG9tIFRva2VuMSIwIAYJ
KoZIhvcNAQkBFhN0b210b2tlbkBzYW1wbGUuY29tMB4XDTExMTAwNzE2Mjg1N1oXDTIxMTAwNDE2
Mjg1N1owgZ8xCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNYXJ5bGFuZDESMBAGA1UEBxMJQmFsdGlt
b3JlMTEwLwYDVQQKEyhTYW1wbGUgU1RTIEtleSAtLSBOT1QgRk9SIFBST0RVQ1RJT04gVVNFMRIw
EAYDVQQDEwlUb20gVG9rZW4xIjAgBgkqhkiG9w0BCQEWE3RvbXRva2VuQHNhbXBsZS5jb20wgZ8w
DQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOt5eoh1UkPJXpONsYXdjfeNvKLmXqkCvG8i71WOicLA
2XxhCFHHeL97aPpzx0FavzdN2RMMTi5znS7A1bSSkzbgzrkmM/EP3FKIplPSFjNxIxb6suSHJjXB
xto7GbW7X6uQ1OY//jPwO94eYy/my9NKTbUO9zqYx257oY/kiPjxAgMBAAGjggEIMIIBBDAdBgNV
HQ4EFgQU3jcGsGCCu8KiPH/qrN4Gxt6X/JIwgdQGA1UdIwSBzDCByYAU3jcGsGCCu8KiPH/qrN4G
xt6X/JKhgaWkgaIwgZ8xCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNYXJ5bGFuZDESMBAGA1UEBxMJ
QmFsdGltb3JlMTEwLwYDVQQKEyhTYW1wbGUgU1RTIEtleSAtLSBOT1QgRk9SIFBST0RVQ1RJT04g
VVNFMRIwEAYDVQQDEwlUb20gVG9rZW4xIjAgBgkqhkiG9w0BCQEWE3RvbXRva2VuQHNhbXBsZS5j
b22CCQC/prhRBk+5GjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAE2PO9cvhbVpMLnj
5WXPgeFXFz+4GJ5+oRO62oUmWCQoTZ7pEP8qVIG4k6QA+MDgCOPnlNQc3xm+g3GeIva4kPMaSFFC
vr166isT/Q9IBmw/d73ySoeJYgCoF/wmFnsJB4IThBYWaXMcf6LJG5jV5LGgstiale2AtneA0Rbw
2fI2
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</saml:Assertion>
<xenc:ReferenceList xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5008" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5002">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>q3OhGHNaPipxPuCMjJC+PyT68TI=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5003">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>WSFCe99g/+V68BHgVOCHFzBnx3U=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>5Ab1ebo4/FraGgck/A8iDx1J9+I=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>NDSBwkh1pMA///hK+GSbu9ryJhA=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>cPjyqXVnsyhmWgUM6Ef5CjFhEYI=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5007">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>uY4ta0zfxNRKq9rhq1GIv5mmpiw=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_3">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>/oRs4Tw/2MmgO1DcLgGubdW8rnI=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>PLq8mKgJwmdatO8RsqzsLP0u6h8=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference>
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">uuid-cc1a46be-a78c-4a7b-9edb-b9d806dcbdbf</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5007">
<xenc:EncryptedData xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_5008"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">uuid-cc1a46be-a78c-4a7b-9edb-b9d806dcbdbf</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>TOXgfMlDaHK0ZYKGy9Uuu4JIisGDBAdf+quR7RK69LDtWKR0dLVwnFtiqnXqlyp3tW1BvcWJgnWL3mIZqFNWAt4/0eZXOTgffuqKyuvuVesH2mvp2Tl1xjgt2Ae7Hasjm2ZOahoVJnmPNlltHF72Cpgp47dR94VfgymLIg+q5hvFBTY7ltsKd7u9yOdG8ZMxlBD7kpVcr7ePTG15K7y/sheSQs3SLb2JhwhVd/qbrUNhsCamGKht1w8ijfXUcDGsYJWwzh2tz0Rr8+OYr9ttSzUzF0hCWsEWC/O9ey7po44zz4knkNuknVYBWa5rdS7sspQJfO3R+WrHnBKJUWHqpOwHwMZGQm6FxfjORMIROnKgBTwUuEwfP3jijAhGszz2oF6+L9QMmMluP3cj1oexr6zRv28Qq72ya2PG2IXJLFFNiXwjHnkGFeDm8L+x2+0L7JqGARGdW8ZQEdvY3LCl4YZMS41unlpPWBTYdUtWNu3JcX9+NNx4WlsI17ZY0MMRVZrGjgR553RKtA8Xd96kDePoKmUCH5n2bN/uL4FU3VYWzemVgxIj2N9oKhUbWRpZMvPKBEq7HmeZkRxVEdSHF1eBlF+Osj48FFVVDVqdohwj6ZnPoE5MzhF4uWGF2p7Z3PcxLaBxhkmdyicZlldVtYC2XSm8PcGfqxLcfg1CPiTR0HPQN1S9VG1FrXnOeHwZxT19DtnGVcjriW/mcimXHwMlsKnUUsaQtkdEGqGBbY9hm98nlKdFoNyvzLKyN5+2JRZ4VovtmaWPQtqaVllIy+ww7RRGm64wjkCGfkcai1iPZvoxmkSxAx1+IbHvVFaKtSBCc9KCJ4V5Jhog3LQkw5qjkmZBCnlotZNGzvVrKveF0D7kRtOULwq2Wqmf45I5pjvgLD8op3hW9Pcai8AAywhNhCDMHq76F8wRsq0I3HefBf0I1ViPHDr8KmaSSukj
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 4. SCT response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding:
chunked
Date: Fri, 27 Jul 2012 19:29:13 GMT
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5003">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/SCT
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5002">uuid:7583610b-3bf9-4529-81e5-85033cfde9df
</MessageID>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">uuid:493ae27e-3fe5-4fc9-99e1-653a71441e14
</RelatesTo>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">http://www.w3.org/2005/08/addressing/anonymous
</To>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<xenc:ReferenceList xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5007" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5002">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>j7IXvfHah1ZkaBT95uG831rvVUE=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5003">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>So0tzYlrNYzBu49jKEIXqduBCS8=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>Z8CfjnqGqnyC5gfdmtNLt+msy8Y=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>Nd/8wVmBdLowQKMblBRYK+6xcjA=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>Rtv+0Pthc7sGT50sp7zWnB9mCzI=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_3">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>/oRs4Tw/2MmgO1DcLgGubdW8rnI=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>71hE3qutafljTIIkjK8GLhXUqNY=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference>
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">uuid-cc1a46be-a78c-4a7b-9edb-b9d806dcbdbf</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5006">
<xenc:EncryptedData xmlns:ns18="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns17="http://www.w3.org/2003/05/soap-envelope" Id="_5007"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">uuid-cc1a46be-a78c-4a7b-9edb-b9d806dcbdbf</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>zR5bcAOwa86bS9l+QFGjaONiZLJGO8FiKfCI88KFFb1/oIYyNnS5G2ibZqteFRToonlIzyhhF0xfGUybJPIPP3Fqt13pwE3Dah8REt85Km70+EKrdDYMZFmYc48W6G2ZHJKTnYj5Uwgns0Zz79dp11O2sujvWGNVXEyp4R3+bqvONxDjXosPlqF0I1M/VIFYwpvwW4ziKjqTPU9cTMsy0Fe1RaFVFD6A3Xjz9B5pCjnYpUo83z7e7RjY5PrFovVc3al2Nf3p6gJMnFrfy9Ory+aXbLP5caN1J/3yA33trFTOPt777zvXD5et6MeHlL5H6wHnQaNhYXpSm4yY6yzjM837nNijoAAlPBHYlm75Y6LhkZNHHziyhwSkE5+iP83oeeMWbHD7VkZn35eOuBNChxRes57R4vAOqiV4k3MIZ/1w2LC8FUOOYBgrBY+pbqjbGt58SefzmTcMQb0xh0EEv0U1bXMT7Dm+GaznvDXYD8RH21yWM0EwkEhfuiTuDCNLp0tDsQe108QdUhhPhucspKJDOOUzK8PXZTAY2r8+XFiIpM3xW+nriykxvVKcajrGBl9YCiz5Yqaq7W9uYbFG+Wa8SeRe4qTlofgUzEco6VlCcxBV8J5Db0vlp9P7o+nBAUe6IngwIRbQ9k4WNmRy7Dh3pXSri5fDKCDIFXkLkIEmzQ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>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 5. 1st request for doubled number; note SecurityContextToken and not SAML Assertion sent, and SCT
used for encryption by listed DerivedKeyTokens instead.
POST /doubleit/services/doubleit HTTP/1.1
Accept: text/xml, multipart/related
Content-Type: text/xml;
charset=utf-8
SOAPAction: "http://www.example.org/contract/DoubleIt/DoubleItPortType/DoubleItRequest"
User-Agent: Metro/2.2 (branches/2.2-7015; 2012-02-20T20:31:25+0000) JAXWS-RI/2.2.6 JAXWS/2.2
svn-revision#unknown
Host: localhost:8080
Connection: keep-alive
Content-Length: 6955
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5008">http://localhost:8080/doubleit/services/doubleit
</To>
<Action xmlns="http://www.w3.org/2005/08/addressing" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
S:mustUnderstand="1" wsu:Id="_5007">http://www.example.org/contract/DoubleIt/DoubleItPortType/DoubleItRequest
</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5006">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<FaultTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</FaultTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">uuid:ad19b3e8-360c-4340-b511-f66675ae1874
</MessageID>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_5">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<ns19:SecurityContextToken
xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="uuid-7fc60f37-eb5a-4f35-96a6-15af2bebf7f5">
<ns19:Identifier>urn:uuid:fdc34de2-4504-472b-ad1e-d3c8fba569b3</ns19:Identifier>
</ns19:SecurityContextToken>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#uuid-7fc60f37-eb5a-4f35-96a6-15af2bebf7f5"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>24</ns19:Length>
<ns19:Nonce>sbOd6NsCDbYrmzzRUyvu86+2</ns19:Nonce>
</ns19:DerivedKeyToken>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_4">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#uuid-7fc60f37-eb5a-4f35-96a6-15af2bebf7f5"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>32</ns19:Length>
<ns19:Nonce>AXfrprCwRMFZc3YkXaTKW8aI</ns19:Nonce>
</ns19:DerivedKeyToken>
<xenc:ReferenceList xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5012" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>hBJugkYVOYpH1mZAJLjBtOr3iYg=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>Jstv1vZYSbO+MMG4WomTp34xsWQ=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>nd8B0+bZuJwz3kdPWZ9XTNye7Ro=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5007">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>jf63rntDQ4DUYK4JbkQXQPBlVYs=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5008">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>uKowBlUJ2poXz2GKMUuZ8JChyX0=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5009">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>3yh7IKRGZDQc3gACby6DRbq2qko=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>BF350b6AnvdviVGICroc+DwcraM=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>8DFcVyASeh+SSeqgQGNNO47Ts2g=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference wsu:Id="_5003">
<wsse:Reference URI="#_3" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5009">
<xenc:EncryptedData xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_5012"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#_4" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>nG0aUO8QS1/NGnN82tGxr2o+AxTavtIWDfj9c+fCSQ189wZyxzjKb5EICP0svAPNpefisCdCl1/ECJi4GpswxlcbGGjV4WGpjittlQRpCu2jpXbb1n6jJCsh+e6jhGtIlUiMcdTIGnCPzigp8w1oEu6Gfie7/+06tyIv6hLPxr1xBJbGRqHdpCzsrU2rJTLy
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 6. Response for doubled number; note SecurityContextToken not sent but referred to via ID in DerivedKeyTokens.
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding:
chunked
Date: Fri, 27 Jul 2012 19:29:13 GMT
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
S:mustUnderstand="1" wsu:Id="_5005">http://www.example.org/contract/DoubleIt/DoubleItPortType/DoubleItResponse
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">uuid:fd5009b0-6661-426b-b927-dbb7ebbf325f
</MessageID>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5006">uuid:ad19b3e8-360c-4340-b511-f66675ae1874
</RelatesTo>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5007">http://www.w3.org/2005/08/addressing/anonymous
</To>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_5">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsse:SecurityTokenReference>
<wsse:Reference URI="urn:uuid:fdc34de2-4504-472b-ad1e-d3c8fba569b3"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>24</ns19:Length>
<ns19:Nonce>5LBUW0FkTv0o+urN7okagkND</ns19:Nonce>
</ns19:DerivedKeyToken>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_4">
<wsse:SecurityTokenReference>
<wsse:Reference URI="urn:uuid:fdc34de2-4504-472b-ad1e-d3c8fba569b3"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>32</ns19:Length>
<ns19:Nonce>NZsxhwlgQ+e5EpfS/bEdWKLK</ns19:Nonce>
</ns19:DerivedKeyToken>
<xenc:ReferenceList xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5011" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>RpMdVOblzCw7Qt/k/G/s0spNkj0=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>CDFgVNcYLPA/vMlUS2SY/Fixdlw=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>wsieKnxPI13q/ES7eITf4C+96O4=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5007">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>iImH/BxkwjSnqsa1XgdAZxFS5nw=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5008">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>F4pPe0vDLP0bCyHv62IqFgcYn1I=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>BF350b6AnvdviVGICroc+DwcraM=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>nybw8Gsn8uY8iSOs4Y5fK0OYOdM=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference wsu:Id="_5003">
<wsse:Reference URI="#_3" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5008">
<xenc:EncryptedData xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_5011"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#_4" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>QTCroFwmzh+WS1bPr2rfXI8fhcfcBR998Zae2/Nf2IO6SQrN8h4CGXRLokNjzWnbPR4Z9mAo6mo4oGCJDnCD5XCriuy8fLOzF/EjdgZDq8t2W71+D6p84D464q9FXk8GmMJPMvfwFDN5HLvIhBtM+1b2pmeCRaz04bJ477gmqI1eIW4t2VPuuYOB4A/u8bXoR5o9it0qqyWSL8ll0EAnEw==
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 7. 2nd request of a doubled number. Note SecurityContextToken has same ID as previous request but different
DerivedKeyTokens
POST /doubleit/services/doubleit HTTP/1.1
Accept: text/xml, multipart/related
Content-Type: text/xml;
charset=utf-8
SOAPAction: "http://www.example.org/contract/DoubleIt/DoubleItPortType/DoubleItRequest"
User-Agent: Metro/2.2 (branches/2.2-7015; 2012-02-20T20:31:25+0000) JAXWS-RI/2.2.6 JAXWS/2.2
svn-revision#unknown
Host: localhost:8080
Connection: keep-alive
Content-Length: 6955
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5008">http://localhost:8080/doubleit/services/doubleit
</To>
<Action xmlns="http://www.w3.org/2005/08/addressing" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
S:mustUnderstand="1" wsu:Id="_5007">http://www.example.org/contract/DoubleIt/DoubleItPortType/DoubleItRequest
</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5006">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<FaultTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</FaultTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">uuid:48936e05-ef4b-4b73-8b81-0b36eea793cb
</MessageID>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_5">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<ns19:SecurityContextToken
xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="uuid-7fc60f37-eb5a-4f35-96a6-15af2bebf7f5">
<ns19:Identifier>urn:uuid:fdc34de2-4504-472b-ad1e-d3c8fba569b3</ns19:Identifier>
</ns19:SecurityContextToken>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#uuid-7fc60f37-eb5a-4f35-96a6-15af2bebf7f5"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>24</ns19:Length>
<ns19:Nonce>jk724iyR4o97KzJs5AJP1dkN</ns19:Nonce>
</ns19:DerivedKeyToken>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_4">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#uuid-7fc60f37-eb5a-4f35-96a6-15af2bebf7f5"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>32</ns19:Length>
<ns19:Nonce>P7xGRdw5a+JfRqDXtHumPxiC</ns19:Nonce>
</ns19:DerivedKeyToken>
<xenc:ReferenceList xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5012" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>hBJugkYVOYpH1mZAJLjBtOr3iYg=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>cOzpUEL+9/qh8YOnaJ7/MjAVOdc=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>nd8B0+bZuJwz3kdPWZ9XTNye7Ro=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5007">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>jf63rntDQ4DUYK4JbkQXQPBlVYs=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5008">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>uKowBlUJ2poXz2GKMUuZ8JChyX0=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5009">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>3PbFRVXVluf9VGHsqr8fihKk+9Q=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>BF350b6AnvdviVGICroc+DwcraM=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>Q7OzPQV7DzTtXNGFIPLXDBAbCf0=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference wsu:Id="_5003">
<wsse:Reference URI="#_3" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5009">
<xenc:EncryptedData xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_5012"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#_4" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>IMqLMEvTQ9Z1AhgWJtuGLOpNCiygjwjj+ScrxGtSxZUsPZpPL4DYPvQOi7T4J69EP4MgrHXsxZGUd//+S22i0DnAT+ScfpVOua1a0OvUApJ7c9HUiNwRQ3/1U5yrspinDoa7/nL2/cODg27TvL2ekmXFfK8xNE0/kFi1ap/CQ9mDOwYON5RpDMBekIxqw7uF
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
// 8. Second response of a doubled number:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding:
chunked
Date: Fri, 27 Jul 2012 19:29:14 GMT
1816
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
S:mustUnderstand="1" wsu:Id="_5005">http://www.example.org/contract/DoubleIt/DoubleItPortType/DoubleItResponse
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">uuid:189c0ed6-f240-4b55-96d9-53d84e0843ed
</MessageID>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5006">uuid:48936e05-ef4b-4b73-8b81-0b36eea793cb
</RelatesTo>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5007">http://www.w3.org/2005/08/addressing/anonymous
</To>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_5">
<wsu:Created>2012-07-27T19:29:14Z</wsu:Created>
<wsu:Expires>2012-07-27T19:34:14Z</wsu:Expires>
</wsu:Timestamp>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsse:SecurityTokenReference>
<wsse:Reference URI="urn:uuid:fdc34de2-4504-472b-ad1e-d3c8fba569b3"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>24</ns19:Length>
<ns19:Nonce>wkmYyASlAD8VyqeAVcau4Oyn</ns19:Nonce>
</ns19:DerivedKeyToken>
<ns19:DerivedKeyToken xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_4">
<wsse:SecurityTokenReference>
<wsse:Reference URI="urn:uuid:fdc34de2-4504-472b-ad1e-d3c8fba569b3"
ValueType="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct" />
</wsse:SecurityTokenReference>
<ns19:Offset>0</ns19:Offset>
<ns19:Length>32</ns19:Length>
<ns19:Nonce>s0qlZYCGunrT/TXD25m8uRm/</ns19:Nonce>
</ns19:DerivedKeyToken>
<xenc:ReferenceList xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope">
<xenc:DataReference URI="#_5011" />
</xenc:ReferenceList>
<ds:Signature xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>mDFupBC5w5ZTEN+ZV0mADqHu2QY=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>CDFgVNcYLPA/vMlUS2SY/Fixdlw=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>jDLDXmdL/4AkFYZUuCSoW5Tx7Oo=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5007">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>iImH/BxkwjSnqsa1XgdAZxFS5nw=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5008">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>eu6DgrEvCy7OdwFtoHI+jq7PL4M=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>BF350b6AnvdviVGICroc+DwcraM=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>IKImpbfMJGzTb0PAu5dBV9Mmi+A=</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference wsu:Id="_5003">
<wsse:Reference URI="#_3" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5008">
<xenc:EncryptedData xmlns:ns19="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512"
xmlns:ns18="http://www.w3.org/2003/05/soap-envelope" Id="_5011"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeyInfoType">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#_4" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>P+SF8nyUxQ4t7AqOSTTayka/W7W1/LIMXRop8koou77nEYw/qKPAzQYr0dm1ejRsOXRzPZXXFgHMY+3z6/La4FxDmuhCweC3So2jirUvh1ztQcsVVYeejNGfF5ucxk1VtZnlVcOc3mSWy8gQmTHY8g6SI0DGEzuHM+OSjjUckt1K9n3R3ew4dZ0LnIDpS9LKSEsx5XYMxXoaoeNuVbCvpw==
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment