summaryrefslogtreecommitdiff
path: root/docs/api/chapters/examples.sgml
blob: 05d972d4dddaabda38b6b60b42f0c50c19d0a213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<chapter id="xmlsec-examples">
    <title>Examples.</title>
    <sect1 id="xmlsec-examples-overview" >
	<title>XML Security Library Examples.</title>
	<para>This section contains several examples of using XML Security Library
	to sign, veiryf, encrypt or decrypt XML documents.</para>
    </sect1>
	
    <sect1 id="xmlsec-examples-sign-template-file">
	<title>Signing a template file.</title>
	
	&xmlsec-example-sign1;
	&xmlsec-example-sign1-tmpl;
    	&xmlsec-example-sign1-res;
    </sect1>
	
    <sect1 id="xmlsec-examples-sign-dynamimc-template">
	<title>Signing a dynamicaly created template.</title>
	
	&xmlsec-example-sign2;
	&xmlsec-example-sign2-doc;
    	&xmlsec-example-sign2-res;
    </sect1>
	
    <sect1 id="xmlsec-examples-sign-x509">
	<title>Signing with X509 certificate.</title>
	
	&xmlsec-example-sign3;
	&xmlsec-example-sign3-doc;
    	&xmlsec-example-sign3-res;
    </sect1>
	
    <sect1 id="xmlsec-verify-with-key">	
	<title>Verifying a signature with a single key.</title>
            
	&xmlsec-example-verify1;
    </sect1>
	
    <sect1 id="xmlsec-verify-with-keys-mngr">
	<title>Verifying a signature with keys manager.</title>
        
	&xmlsec-example-verify2;
    </sect1>
	
    <sect1 id="xmlsec-verify-with-x509">
	<title>Verifying a signature with X509 certificates.</title>
        
	&xmlsec-example-verify3;
    </sect1>

    <sect1 id="xmlsec-verify-with-restrictions">
	<title>Verifying a signature with additional restrictions.</title>
        
	&xmlsec-example-verify4;
	&xmlsec-example-verify4-tmpl;
	&xmlsec-example-verify4-res;
	&xmlsec-example-verify4-bad-tmpl;
	&xmlsec-example-verify4-bad-res;
    </sect1>
	
    <sect1 id="xmlsec-encrypt-template-file">
	<title>Encrypting data with a template file.</title>
	
	&xmlsec-example-encrypt1;
	&xmlsec-example-encrypt1-tmpl;
    	&xmlsec-example-encrypt1-res;
    </sect1>

    <sect1 id="xmlsec-encrypt-dynamic-template">
	<title>Encrypting data with a dynamicaly created template.</title>
	
	&xmlsec-example-encrypt2;
    	&xmlsec-example-encrypt2-doc;
	&xmlsec-example-encrypt2-res;
    </sect1>

    <sect1 id="xmlsec-encrypt-with-session-key">	
	<title>Encrypting data with a session key.</title>
	
	&xmlsec-example-encrypt3;
	&xmlsec-example-encrypt3-doc;
	&xmlsec-example-encrypt3-res;
    </sect1>
	
    <sect1 id="xmlsec-decrypt-with-signle-key">
	<title>Decrypting data with a single key.</title>
	
	&xmlsec-example-decrypt1;
    </sect1>
	
    <sect1 id="xmlsec-decrypt-with-keys-mngr">
	<title>Decrypting data with keys manager.</title>
	
	&xmlsec-example-decrypt2;
    </sect1>
	
    <sect1 id="xmlsec-custom-keys-manager">
	<title>Writing a custom keys manager.</title>
        
	&xmlsec-example-decrypt3;
    </sect1>
</chapter>