How to set Signature 'DigestMethod' algorithm using OpenSAML
Dulanja Liyanage
dulanja.liyanage at gmail.com
Thu Jul 9 02:23:58 EDT 2015
Hi,
We can set the signature algorithm as following using OpenSAML:
signature.setSignatureAlgorithm("
> http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");
I'm trying to find a way to set the DigestMethod algorithm like that. The
only way to do that seems to be :
BasicSecurityConfiguration config = (BasicSecurityConfiguration)
> Configuration.getGlobalSecurityConfiguration();
>
> config.setSignatureReferenceDigestMethod(SignatureConstants.ALGO_ID_DIGEST_SHA256);
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?
Appreciate your inputs on this.
Thanks,
Dulanja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150709/20120050/attachment.html>
More information about the dev
mailing list