XML Digital Signature Java

前端 未结 3 1636
醉话见心
醉话见心 2021-02-06 03:42

i need to digital sign my XML messages in JAVA: The resulting XML signature should have the following format:



        
3条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 04:34

    You got , because that's what you asked for: fac.newSignatureMethod(SignatureMethod.RSA_SHA1, null). As you figured out and https://blogs.oracle.com/mullan/entry/using_stronger_xml_signature_algorithms states, fac.newSignatureMethod("http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", (SignatureMethodParameterSpec) null) will get you .

提交回复
热议问题