apache > xml.apache
 

Java Examples

XML Signatures

Part of this software can be used to create and verify arbitrary forms of XML Signatures. The documentation available here is not very huge; my first approach is to supply usage examples which are available in the src_samples/ directory to give interested users a first starting point to jump-start with XML Signature.

Note
The samples divide into two groups: Samples that create and samples that verify Signatures. Eventually, you should adjust the verifying program to another filename if you get FileNotFoundExceptions.

XML Encryption

As with signatures, samples are provided to show how to encrypt and decrypt XML content. See src_samples/org/apache/xml/security/samples/encryption.

The samples can be compiled and run using ant encrypt and ant decrypt.