Is there an easier way to sign an XML document in Java?

前端 未结 3 1244
囚心锁ツ
囚心锁ツ 2021-02-05 08:09

I\'m trying to digitally sign an XML document using Java. I\'ve got an implementation working with some references I\'ve found that use various implementations in the javax.xml.

3条回答
  •  没有蜡笔的小新
    2021-02-05 09:01

    I looked at all of the options for signing XML files and decided to go with a non-standard approach. The standards were all way too verbose. Also, I didn't need compatibility with the standards---I just needed signatures on a block of XML.

    Probably the easiest way to "sign" a block of XML is to use GPG with a detached signature.

提交回复
热议问题