1*b1cdbd2cSJim Jagielski<?xml version="1.0"?>
2*b1cdbd2cSJim Jagielski<!--***********************************************************
3*b1cdbd2cSJim Jagielski *
4*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
5*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
6*b1cdbd2cSJim Jagielski * distributed with this work for additional information
7*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
8*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
9*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
10*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
11*b1cdbd2cSJim Jagielski *
12*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
13*b1cdbd2cSJim Jagielski *
14*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
15*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
16*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
18*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
19*b1cdbd2cSJim Jagielski * under the License.
20*b1cdbd2cSJim Jagielski *
21*b1cdbd2cSJim Jagielski ***********************************************************-->
22*b1cdbd2cSJim Jagielski<!--
23*b1cdbd2cSJim JagielskiXML Security Library example: Simple encryption template file for encrypt1 example.
24*b1cdbd2cSJim Jagielski-->
25*b1cdbd2cSJim Jagielski<Envelope xmlns="urn:envelope">
26*b1cdbd2cSJim Jagielski  The encrypted data is <Data>Hello, World!</Data>
27*b1cdbd2cSJim Jagielski  <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Element">
28*b1cdbd2cSJim Jagielski	<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"></EncryptionMethod>
29*b1cdbd2cSJim Jagielski	<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
30*b1cdbd2cSJim Jagielski		<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
31*b1cdbd2cSJim Jagielski    	  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
32*b1cdbd2cSJim Jagielski    	  <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
33*b1cdbd2cSJim Jagielski      	  <X509Data>
34*b1cdbd2cSJim Jagielski        	<X509IssuerSerial>
35*b1cdbd2cSJim Jagielski          	  <X509IssuerName>CN=Test Issuer</X509IssuerName>
36*b1cdbd2cSJim Jagielski          	  <X509SerialNumber>123450001</X509SerialNumber>
37*b1cdbd2cSJim Jagielski        	</X509IssuerSerial>
38*b1cdbd2cSJim Jagielski      	  </X509Data>
39*b1cdbd2cSJim Jagielski    	  </KeyInfo>
40*b1cdbd2cSJim Jagielski    	  <CipherData>
41*b1cdbd2cSJim Jagielski			<CipherValue/>
42*b1cdbd2cSJim Jagielski    	  </CipherData>
43*b1cdbd2cSJim Jagielski		</EncryptedKey>
44*b1cdbd2cSJim Jagielski	</KeyInfo>
45*b1cdbd2cSJim Jagielski    <CipherData>
46*b1cdbd2cSJim Jagielski	  <CipherValue/>
47*b1cdbd2cSJim Jagielski    </CipherData>
48*b1cdbd2cSJim Jagielski  </EncryptedData>
49*b1cdbd2cSJim Jagielski  <Data>
50*b1cdbd2cSJim Jagielski	  Hello, World!
51*b1cdbd2cSJim Jagielski		<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Element">
52*b1cdbd2cSJim Jagielski		<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"></EncryptionMethod>
53*b1cdbd2cSJim Jagielski		<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
54*b1cdbd2cSJim Jagielski			<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
55*b1cdbd2cSJim Jagielski		  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
56*b1cdbd2cSJim Jagielski		  <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
57*b1cdbd2cSJim Jagielski		  <X509Data>
58*b1cdbd2cSJim Jagielski			<X509IssuerSerial>
59*b1cdbd2cSJim Jagielski		  	  <X509IssuerName>CN=Test Issuer</X509IssuerName>
60*b1cdbd2cSJim Jagielski		  	  <X509SerialNumber>123450001</X509SerialNumber>
61*b1cdbd2cSJim Jagielski			</X509IssuerSerial>
62*b1cdbd2cSJim Jagielski		  </X509Data>
63*b1cdbd2cSJim Jagielski		  </KeyInfo>
64*b1cdbd2cSJim Jagielski		  <CipherData>
65*b1cdbd2cSJim Jagielski				<CipherValue/>
66*b1cdbd2cSJim Jagielski		  </CipherData>
67*b1cdbd2cSJim Jagielski			</EncryptedKey>
68*b1cdbd2cSJim Jagielski		</KeyInfo>
69*b1cdbd2cSJim Jagielski		<CipherData>
70*b1cdbd2cSJim Jagielski		  <CipherValue></CipherValue>
71*b1cdbd2cSJim Jagielski		</CipherData>
72*b1cdbd2cSJim Jagielski		</EncryptedData>
73*b1cdbd2cSJim Jagielski                <Data>
74*b1cdbd2cSJim Jagielski		  This is an embeded encryption!
75*b1cdbd2cSJim Jagielski		</Data>
76*b1cdbd2cSJim Jagielski	  </Data>
77*b1cdbd2cSJim Jagielski</Envelope>
78*b1cdbd2cSJim Jagielski
79