Приложение 4

ПРИМЕР ЗАШИФРОВАННОГО СООБЩЕНИЯ

<soap:Envelope

xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

<soap:Header>

<wsse:Security

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-

wssecurity-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-

wssecurity-utility-1.0.xsd"

xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

xmlns:ds="http://www.w3.org/2000/09/xmldsig#"

soap:mustUnderstand="true">

<wsse:BinarySecurityToken

wsu:Id="EncryptionCertificate"

ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-

token-profile-1.0#X509v3"

EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-

message-security-1.0#Base64Binary">

<!-- Сертификат открытого ключа -->

</wsse:BinarySecurityToken>

<xenc:EncryptedKey>

<xenc:EncryptionMethod

Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>

<ds:KeyInfo>

<wsse:SecurityTokenReference>

<wsse:Reference

URI="#EncryptionCertificate"

ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-

x509-token-profile-1.0#X509v3" />

</wsse:SecurityTokenReference>

</ds:KeyInfo>

<xenc:ReferenceList>

<xenc:DataReference URI="#EncryptedMessage"/>

</xenc:ReferenceList>

</xenc:EncryptedKey>

</wsse:Security>

</soap:Header>

<soap:Body>

<xenc:EncryptedData Id="EncryptedMessage">

<xenc:EncryptionMethod

Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>

<xenc:CipherData>

<xenc:CipherValue>

<!-- Зашифрованное сообщение -->

</xenc:CipherValue>

</xenc:CipherData>

</xenc:EncryptedData>

</soap:Body>

</soap:Envelope>