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