<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Courier New \;color\:red";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.m1
        {mso-style-name:m1;
        color:blue;}
span.t1
        {mso-style-name:t1;
        color:#990000;}
span.b1
        {mso-style-name:b1;
        font-family:"Courier New","serif";
        color:red;
        font-weight:bold;
        text-decoration:none none;}
span.ns1
        {mso-style-name:ns1;
        color:red;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Brent,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have tried the 2 approaches – with or without the SecurityHelper, but still gets the same problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Attached the XML created by me. Can you find something from it?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Asaf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> dev-bounces@shibboleth.net [mailto:dev-bounces@shibboleth.net]
<b>On Behalf Of </b>Brent Putman<br>
<b>Sent:</b> Wednesday, January 23, 2013 00:03<br>
<b>To:</b> dev@shibboleth.net<br>
<b>Subject:</b> Re: Missing InclusiveNamespaces in the AuthnRequest<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 1/21/13 10:27 AM, Asaf Peter wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#002060">Hi Shibboleth Developers,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;background:white">I am implementing an SP initiated web browser SAML 2.0 SSO profile in JBOSS.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060">I am testing it with a Shibboleth IDP.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060"><br>
<span style="background:white">I have managed to get a full authentication workflow with the SAML IDP using opensaml, when sending an unsigned AuthenRequest.</span></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;background:white">Now I am trying to add a signature to the AuthenRequest, but getting an error
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">-
</span><strong><span style="font-family:"Calibri","sans-serif"">Error decoding authentication request message.</span></strong><o:p></o:p></p>
<p class="MsoNormal"><strong><span style="font-family:"Calibri","sans-serif""> </span></strong><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">In the
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#7030A0;background:white">idp-process.log
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">I see that there is an</span>
<span style="color:#7030A0">org.opensaml.xml.parse.XMLParserException: Invalid XML
</span>error.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
Are there any details? I thought Xerces usually gave some info about what the unparseable XML was.<br>
<br>
You can also use an external tool to manually decode the request param from your browser to a string, like SAML Tracer plugin to Firefox and this website:<br>
<br>
<a href="https://rnd.feide.no/software/saml_2_0_debugger/">https://rnd.feide.no/software/saml_2_0_debugger/</a><br>
<br>
This will let you visually inspect the XML and see if you can spot the issue.<br>
<br>
You also might be sending to a wrong endpoint on the IdP or something like that.<br>
<br>
<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">It seems that the
</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#990000">ec:InclusiveNamespaces
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">tag is missing from the signature.</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><b><span style="font-size:10.0pt;font-family:"Courier New ;color:red","serif""> </span></b><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">Here’s the Transforms part created by me:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transforms</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">></span></span><o:p></o:p></p>
<p class="MsoNormal"><span class="b1"><span style="font-size:10.0pt"> </span>
</span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transform</span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Algorithm</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">="</span></span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature">http://www.w3.org/2000/09/xmldsig#enveloped-signature</a></span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">"
/></span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><o:p></o:p></p>
<p class="MsoNormal"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transform</span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Algorithm</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">="</span></span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://www.w3.org/2001/10/xml-exc-c14n">http://www.w3.org/2001/10/xml-exc-c14n#</a></span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">"
/></span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""></</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transforms</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">And here’s an example from the valid SAMLResponse coming back from the IDP:
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Courier New","serif"">
</span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transforms</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">></span></span><o:p></o:p></p>
<p class="MsoNormal"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transform</span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Algorithm</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">="</span></span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature">http://www.w3.org/2000/09/xmldsig#enveloped-signature</a></span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">"
/></span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transform Algorithm</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">="</span></span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://www.w3.org/2001/10/xml-exc-c14n">http://www.w3.org/2001/10/xml-exc-c14n#</a></span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">"></span></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in"><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";background:yellow;mso-highlight:yellow">ec:InclusiveNamespaces</span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";background:yellow;mso-highlight:yellow">
</span><span class="ns1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";background:yellow;mso-highlight:yellow">xmlns:ec</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">="</span></span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:red"><a href="http://www.w3.org/2001/10/xml-exc-c14n">http://www.w3.org/2001/10/xml-exc-c14n#</a></span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">"</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
PrefixList</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">="</span></span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds saml samlp xenc</span></b><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">"
/></span></span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""></</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transform</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""></</span></span><span class="t1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">ds:Transforms</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">></span></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
That is suspicious in itself, I think the OpenSAML code should be emitting the inclusive namespaces list (unless you are using a really old version of OpenSAML).<br>
<br>
But as Scott said, that's not going to result in the error you are seeing.<br>
<br>
<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">When adding the tag manually the authentication works fine.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">Am I missing something in the creation of the Signature?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">Is there a way to set this tag?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white">Here’s the code I use:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";background:white"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> Signature signature = (Signature) Configuration.<i>getBuilderFactory</i>()</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> .getBuilder(Signature.</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">DEFAULT_ELEMENT_NAME</span></i><span style="font-size:10.0pt;font-family:Consolas">).buildObject(Signature.</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">DEFAULT_ELEMENT_NAME</span></i><span style="font-size:10.0pt;font-family:Consolas">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> KeyStore keyStore = getKS();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> RSAPrivateKey privateKey = (RSAPrivateKey) keyStore.getKey(</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">JKS_ALIAS</span></i><span style="font-size:10.0pt;font-family:Consolas">,</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">
</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">PWD</span></i><span style="font-size:10.0pt;font-family:Consolas">.toCharArray());</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> BasicX509Credential decryptionCredential =
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:Consolas"> BasicX509Credential();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> decryptionCredential.setPrivateKey(privateKey);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> signature.setSigningCredential(decryptionCredential);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> signature.setSignatureAlgorithm(SignatureConstants.</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">ALGO_ID_SIGNATURE_RSA_SHA1</span></i><span style="font-size:10.0pt;font-family:Consolas">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> signature.setCanonicalizationAlgorithm(SignatureConstants.</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">ALGO_ID_C14N_EXCL_OMIT_COMMENTS</span></i><span style="font-size:10.0pt;font-family:Consolas">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> KeyInfo keyinfo = (KeyInfo) Configuration.<i>getBuilderFactory</i>().getBuilder(KeyInfo.</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">DEFAULT_ELEMENT_NAME</span></i><span style="font-size:10.0pt;font-family:Consolas">)</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> .buildObject(KeyInfo.</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">DEFAULT_ELEMENT_NAME</span></i><span style="font-size:10.0pt;font-family:Consolas">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> X509Certificate certificate = (X509Certificate) keyStore.getCertificate(</span><i><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">JKS_ALIAS</span></i><span style="font-size:10.0pt;font-family:Consolas">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> KeyInfoHelper.<i>addCertificate</i>(keyinfo, certificate);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> signature.setKeyInfo(keyinfo);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> SecurityConfiguration secConfig = Configuration.<i>getGlobalSecurityConfiguration</i>();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> String keyInfoGeneratorProfile =
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"XMLSignature"</span><span style="font-size:10.0pt;font-family:Consolas">;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055">try</span></b><span style="font-size:10.0pt;font-family:Consolas"> {</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> SecurityHelper.<i>prepareSignatureParams</i>(signature, decryptionCredential, secConfig,</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> keyInfoGeneratorProfile);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> }
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055">catch</span></b><span style="font-size:10.0pt;font-family:Consolas"> (SecurityException e) {</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> e.printStackTrace();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> }</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
I don't know whether this affects your problem - probably not - but you are duplicating code here. The whole point of the SecurityHelper.prepareSignatureParams is a helper to set a bunch of the stuff that you are setting explicitly above. So just pick one
or the other approaches, but not both. The examples of use of the 2 cases are here:<br>
<br>
<a href="https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManJavaDSIG">https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManJavaDSIG</a><br>
<br>
Also, by default there is no KeyInfoGenerator named "XMLSignature", in fact there aren't any named ones at all. If you just pass null, it will use the default one.<br>
<br>
--Brent<br>
<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</body>
</html>