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 a signature in an encryption. 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! the Following is a Signature 51*b1cdbd2cSJim Jagielski <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> 52*b1cdbd2cSJim Jagielski <SignedInfo> 53*b1cdbd2cSJim Jagielski <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> 54*b1cdbd2cSJim Jagielski <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> 55*b1cdbd2cSJim Jagielski <Reference URI="#target"> 56*b1cdbd2cSJim Jagielski <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 57*b1cdbd2cSJim Jagielski <DigestValue> </DigestValue> 58*b1cdbd2cSJim Jagielski </Reference> 59*b1cdbd2cSJim Jagielski </SignedInfo> 60*b1cdbd2cSJim Jagielski <SignatureValue> </SignatureValue> 61*b1cdbd2cSJim Jagielski <KeyInfo> 62*b1cdbd2cSJim Jagielski <X509Data> 63*b1cdbd2cSJim Jagielski <X509IssuerSerial> 64*b1cdbd2cSJim Jagielski <X509IssuerName>CN=Test Issuer</X509IssuerName> 65*b1cdbd2cSJim Jagielski <X509SerialNumber>123450005</X509SerialNumber> 66*b1cdbd2cSJim Jagielski </X509IssuerSerial> 67*b1cdbd2cSJim Jagielski </X509Data> 68*b1cdbd2cSJim Jagielski </KeyInfo> 69*b1cdbd2cSJim Jagielski </Signature> 70*b1cdbd2cSJim Jagielski </Data> 71*b1cdbd2cSJim Jagielski <SignData id="target" refNum="1">Signed Data</SignData> 72*b1cdbd2cSJim Jagielski</Envelope> 73*b1cdbd2cSJim Jagielski 74