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