Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need to compute the signature of a soap message with SHA512withRSA  RSS feed

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need to compute the signature of a soap message with SHA512withRSA.



But only SignatureMethod.RSA_SHA1 exists.

Thanks for any help!
 
Chris Barrett
Bartender
Posts: 317
24
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravi,

Take a deeper look at the XMLSignatureFactory#newSignatureMethod method. You will see you can define your own algorithmic model by passing the w3.org URI for the algorithm as a String.
The URI for RSA with SHA512 is "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512".

PS. I've updated your post with CodeTags. Unformatted or unindented code is often extremely hard to read and many people that might be able to help you will just move along to posts that are easier to understand. Please click this link ⇒ UseCodeTags ⇐ for more information.

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thank you I will give this a try.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!