blob: 106bb448a008359db635bb92f31fe7cb6b0e3ad5 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"
[
<!ENTITY % xmlsec_entities SYSTEM "../xmlsec_entities.ent">
%xmlsec_entities;
]>
<!--
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<document>
<header>
<title>Java Examples</title>
</header>
<body>
<section>
<title>XML Signatures</title>
<p>
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 <code>src_samples/</code> directory to give interested users a
first starting point to jump-start with XML Signature.
</p>
<note>
The samples divide into two groups: Samples that <em>create</em> and
samples that <em>verify</em> Signatures. Eventually, you should adjust
the verifying program to another filename if you get
<code>FileNotFoundException</code>s.
</note>
</section>
<section>
<title>XML Encryption</title>
<p>
As with signatures, samples are provided to show how to encrypt
and decrypt XML content. See
<code>src_samples/org/apache/xml/security/samples/encryption</code>.
</p>
<p>
The samples can be compiled and run using <code>ant encrypt</code>
and <code>ant decrypt</code>.
</p>
</section>
</body>
</document>