Forum Stats

  • 3,733,041 Users
  • 2,246,686 Discussions
  • 7,856,490 Comments

Discussions

How to generate wsse security header with detached signature refering internal header

975726
975726 Member Posts: 44

Hi,

  Can any one help in generating wsse security header with detached signature refering internal header document in reference URI.

The below is the header format I am looking for

<span class="tag" style="color: #800000;"><wsse:Security</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">xmlns:wsse</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</a><span>"</span></span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">xmlns:wsu</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Signature</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Id</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"SIG-E68EBBF1696C5DD4AA143353323390579"</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">xmlns:ds</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2000/09/xmldsig#" rel="nofollow">http://www.w3.org/2000/09/xmldsig#</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:SignedInfo></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:CanonicalizationMethod</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#WithComments" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#WithComments</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:SignatureMethod</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2000/09/xmldsig#rsa-sha1" rel="nofollow">http://www.w3.org/2000/09/xmldsig#rsa-sha1</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Reference</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">URI</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"#TS-E68EBBF1696C5DD4AA143353323390073"</span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Transforms></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Transform</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><InclusiveNamespaces</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">PrefixList</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"wsse wsa soapenv urn urn1 urn2 urn3"</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">xmlns</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Transform></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Transforms></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:DigestMethod</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2000/09/xmldsig#sha1" rel="nofollow">http://www.w3.org/2000/09/xmldsig#sha1</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:DigestValue></span><span class="pln" style="color: #000000;">?TimestampDigestValue?</span><span class="tag" style="color: #800000;"></ds:DigestValue></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Reference></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Reference</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">URI</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"#id-E68EBBF1696C5DD4AA143353323390577"</span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Transforms></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Transform</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><InclusiveNamespaces</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">PrefixList</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"wsa soapenv urn1 urn2 urn3"</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">xmlns</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Transform></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Transforms></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:DigestMethod</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2000/09/xmldsig#sha1" rel="nofollow">http://www.w3.org/2000/09/xmldsig#sha1</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:DigestValue></span><span class="pln" style="color: #000000;">?DigestValue? </span><span class="tag" style="color: #800000;"></ds:DigestValue></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Reference></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Reference</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">URI</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"#id-E68EBBF1696C5DD4AA143353323390578"</span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Transforms></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:Transform</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><InclusiveNamespaces</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">PrefixList</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"wsa soapenv urn urn1 urn3"</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">xmlns</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/10/xml-exc-c14n#" rel="nofollow">http://www.w3.org/2001/10/xml-exc-c14n#</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Transform></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Transforms></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:DigestMethod</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Algorithm</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2000/09/xmldsig#sha1" rel="nofollow">http://www.w3.org/2000/09/xmldsig#sha1</a><span>"</span></span><span class="pln" style="color: #000000;"> </span><span class="tag" style="color: #800000;">/></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:DigestValue></span><span class="pln" style="color: #000000;">?HeaderDigestValue?</span><span class="tag" style="color: #800000;"></ds:DigestValue></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Reference></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:SignedInfo></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:SignatureValue></span><span class="pln" style="color: #000000;">?SignatureValue?</span><span class="tag" style="color: #800000;"></ds:SignatureValue></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><ds:KeyInfo</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">Id</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"KI-E68EBBF1696C5DD4AA143353323390475"</span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><wsse:SecurityTokenReference</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">wsu:Id</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"STR-E68EBBF1696C5DD4AA143353323390476"</span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><wsse:KeyIdentifier</span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">EncodingType</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary</a><span>"</span></span><span class="pln" style="color: #000000;"><br/></span><span class="atn" style="color: #ff0000;">ValueType</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;">?Value?</span><span class="tag" style="color: #800000;"></wsse:KeyIdentifier></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></wsse:SecurityTokenReference></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:KeyInfo></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></ds:Signature></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><wsu:Timestamp</span><span class="pln" style="color: #000000;"> </span><span class="atn" style="color: #ff0000;">wsu:Id</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"TS-E68EBBF1696C5DD4AA143353323390073"</span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><wsu:Created></span><span class="pln" style="color: #000000;">2015-06-05T19:40:33.900Z</span><span class="tag" style="color: #800000;"></wsu:Created></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><wsu:Expires></span><span class="pln" style="color: #000000;">2015-06-05T19:50:33.900Z</span><span class="tag" style="color: #800000;"></wsu:Expires></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></wsu:Timestamp></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></wsse:Security></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><tag</span><span class="pln" style="color: #000000;">  </span><span class="atn" style="color: #ff0000;">ws:id</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"id-E68EBBF1696C5DD4AA143353323390578"</span><span class="pln" style="color: #000000;">  </span><span class="atn" style="color: #ff0000;">xmlns:wsu</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></tag></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"><tag1</span><span class="pln" style="color: #000000;">  </span><span class="atn" style="color: #ff0000;">ws:id</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;">"id-E68EBBF1696C5DD4AA143353323390577"</span><span class="pln" style="color: #000000;">  </span><span class="atn" style="color: #ff0000;">xmlns:wsu</span><span class="pun" style="color: #000000;">=</span><span class="atv" style="color: #0000ff;"><span>"</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a><span>"</span></span><span class="tag" style="color: #800000;">></span><span class="pln" style="color: #000000;"><br/></span><span class="tag" style="color: #800000;"></tag1></span>

Tagged:
Sign In or Register to comment.