<div dir="ltr">Hi,<br><br>We can set the signature algorithm as following using OpenSAML:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">signature.setSignatureAlgorithm("<a href="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256">http://www.w3.org/2001/04/xmldsig-more#rsa-sha256</a>");</blockquote><br>I'm trying to find a way to set the DigestMethod algorithm like that. The only way to do that seems to be : <br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">BasicSecurityConfiguration config = (BasicSecurityConfiguration) Configuration.getGlobalSecurityConfiguration();<br>config.setSignatureReferenceDigestMethod(SignatureConstants.ALGO_ID_DIGEST_SHA256);</blockquote><br>However, that's a global configuration. In my application we bootstrap OpenSAML only once and then used by different threads with different configurations - like different signature algorithms. Is there a way to do this in a thread-safe manner like the Signature Algorithm?<br><br>Appreciate your inputs on this.<br><br>Thanks,<br>Dulanja</div>