<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi All, <div class=""><br class=""></div><div class="">In OpenSAMLv2, the Signature Reference Digest Algorithm was set using </div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(3, 38, 204);" class=""><span style="color: #000000" class=""> </span><span style="color: #931a68" class="">if</span><span style="color: #000000" class=""> ( </span>referenceDigestAlgorithm<span style="color: #000000" class="">!=</span><span style="color: #931a68" class="">null</span><span style="color: #000000" class=""> ) </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> <span class="Apple-tab-span" style="white-space:pre"> </span><span style="text-decoration: underline" class="">BasicSecurityConfiguration</span> <span style="color: #7e504f" class="">config</span> = (<span style="text-decoration: underline" class="">BasicSecurityConfiguration</span>) Configuration.<span style="text-decoration: underline" class="">getGlobalSecurityConfiguration</span>();</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> <span style="color: #7e504f" class="">config</span>.setSignatureReferenceDigestMethod(<span style="color: #931a68" class="">this</span>.<span style="color: #0326cc" class="">referenceDigestAlgorithm</span>);</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> }</div><div><br class=""></div><div>While checking the source code of org.opensaml.xmlsec, I found these two ways</div><div><br class=""></div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(3, 38, 204);" class=""><span style="color: #000000" class=""> </span><span style="color: #931a68" class="">if</span><span style="color: #000000" class=""> ( </span>referenceDigestAlgorithm<span style="color: #000000" class="">!=</span><span style="color: #931a68" class="">null</span><span style="color: #000000" class=""> ) </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(78, 144, 114);" class="">// SignatureSigningParameters <span style="text-decoration: underline" class="">ssp</span> = new SignatureSigningParameters();</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(78, 144, 114);" class="">// ssp.setSignatureReferenceDigestMethod(referenceDigestAlgorithm);</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> BasicSignatureSigningConfiguration <span style="color: #7e504f" class="">config</span> = (BasicSignatureSigningConfiguration) DefaultSecurityConfigurationBootstrap.buildDefaultSignatureSigningConfiguration();</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> LinkedList<String> <span style="color: #7e504f" class="">signatureReferenceDigestMethod</span> = <span style="color: #931a68" class="">new</span> LinkedList<>();</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(126, 80, 79);" class=""><span style="color: #000000" class=""> </span>signatureReferenceDigestMethod<span style="color: #000000" class="">.add(</span><span style="color: #931a68" class="">this</span><span style="color: #000000" class="">.</span><span style="color: #0326cc" class="">referenceDigestAlgorithm</span><span style="color: #000000" class="">);</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> <span style="color: #7e504f" class="">config</span>.setSignatureReferenceDigestMethods(<span style="color: #7e504f" class="">signatureReferenceDigestMethod</span>);</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;" class=""> }</div><div><br class=""></div>Which one is the suggested way to set the reference digest algorithm? The commented one (through the SignatureSigningParameters) or through the BasicSignatureSigningConfiguration?</div><div><br class=""></div><div>Thanks, </div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Massi</div><div><br class=""><blockquote type="cite" class=""><div class="">Il giorno 04 mag 2017, alle ore 17:41, Cantor, Scott <<a href="mailto:cantor.2@osu.edu" class="">cantor.2@osu.edu</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">What about the Core Spec Validator? Is it still available? In v2 I had this nice<br class="">method (that saved me a lot of time).<br class=""></blockquote><br class="">All the validators are gone, the entire interface was removed.<br class=""><br class="">-- Scott<br class=""><br class="">-- <br class="">To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net" class="">dev-unsubscribe@shibboleth.net</a><br class=""></div></div></blockquote></div><br class=""><div class="">
--<br class="">Anger is a gift, <a href="http://www.mascanc.net/" class="">http://www.mascanc.net/</a>
</div>
<br class=""></div></body></html>