The state of a standard Java API for the XML Encryption is no better than that of the XML Signature. A Java Specification Request, JSR-106 titled XML Digital Encryption APIs, was accepted by JCP at the same time as the JSR for the XML Signature. However, at the time of writing this chapter (March 2003), no public specification has been published.
We used VeriSign's TSIK for writing XML Signature earlier in this chapter. This toolkit also supports XML Encryption, following the same structure of API classes as the XML Signature. Again, the emphasis is on ease of use, and not on comprehensive support for the complete specification.
Let us use TSIK to perform XML Encryption operations.
The best ...