国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

利用WSE 加密SOAP報文(8)

2024-07-21 02:21:39
字體:
來源:轉載
供稿:網友
下面是被wse在運行時序列化后產生的報文加密后的結果

<?xml version="1.0" encoding="utf-8"?>

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"

xmlns:xsd="http://www.w3.org/2001/xmlschema">

<soap:header>

<wsu:timestamp

xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">

<wsu:created>2003-02-11t20:21:52z</wsu:created>

<wsu:expires>2003-02-11t20:26:52z</wsu:expires>

</wsu:timestamp>

<wsse:security soap:mustunderstand="1"

xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">

<xenc:encryptedkey

type="http://www.w3.org/2001/04/xmlenc#encryptedkey"

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

<xenc:encryptionmethod

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

<keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#">

<wsse:securitytokenreference>

<wsse:keyidentifier valuetype="wsse:x509v3">

ymlkvwxyd8vuguyliuioxoy7zyn9pwhbfahciyov0aydeaqqpw=

</wsse:keyidentifier>

</wsse:securitytokenreference>

</keyinfo>

<xenc:cipherdata>

<xenc:ciphervalue>

uykgbexdy8lyszqgdgxoxoy7zyn9pwhbfahciyov0...bwrnwk=

</xenc:ciphervalue>

</xenc:cipherdata>

<xenc:referencelist>

<xenc:datareference uri=

"#encryptedcontent-cf014249-0e2a-4f8b-9002-13a7de916be0" />

</xenc:referencelist>

</xenc:encryptedkey>

<xenc:encryptedkey

type="http://www.w3.org/2001/04/xmlenc#encryptedkey"

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

<xenc:encryptionmethod

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

<keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#">

<wsse:securitytokenreference>

<wsse:keyidentifier valuetype="wsse:x509v3">

ymlkvwxyd8vuguyliuiydeaqqpw=

</wsse:keyidentifier>

</wsse:securitytokenreference>

</keyinfo>

<xenc:cipherdata>

<xenc:ciphervalue>

in8kf1cidijjjxclz+... wmqbeevxmzk=

</xenc:ciphervalue>

</xenc:cipherdata>

<xenc:referencelist>

<xenc:datareference uri=

"#encryptedcontent-0744279a-02bf-4ad1-998e-622208eded0e" />

</xenc:referencelist>

</xenc:encryptedkey>

</wsse:security>

</soap:header>

<soap:body>

<getxmldocumentresponse xmlns="http://example.com/dime/">

<getxmldocumentresult>

<response>

<notencrypted>

this part of the response does not need encryption

</notencrypted>

<encryptedresponse

wsu:id="id:e5e8d792-abe7-4476-91d0-856fbdf4a958"

xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">

<xenc:encrypteddata

id=

"encryptedcontent-cf014249-0e2a-4f8b-9002-13a7de916be0"

type="http://www.w3.org/2001/04/xmlenc#content"

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

<xenc:encryptionmethod

algorithm=

"http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />

<xenc:cipherdata>

<xenc:ciphervalue>

2mnhckgvh/5jb0pf4pch3u2vaukswsa...afevjzt=

</xenc:ciphervalue>

</xenc:cipherdata>

</xenc:encrypteddata>

</encryptedresponse>

</response>

</getxmldocumentresult>

</getxmldocumentresponse>

</soap:body>

</soap:envelope>

注意,在這個加密后的報文里,這里有一個用于表示x.509證書的binarysecuritytoken元素,但有兩個分開的encryptedkey元素,每個encrypteddata元素都被添加到soapcontext,在最外面的被加密的元素中(encryptedresponse),你只能看到encrypteddata元素,當encryptedresponse被加密后,表示encryptedsub元素的encrypteddata元素也隨之轉換為密文了。當這個報文在客戶端被收到時,securityinputfilter使用來自記號的信息來得到曾給兩個encryptedkey元素解密過的私有密鑰。
  • 本文來源于網頁設計愛好者web開發社區http://www.html.org.cn收集整理,歡迎訪問。
  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 平武县| 德昌县| 高阳县| 龙游县| 阿拉善盟| 同仁县| 阳春市| 鹿泉市| 沾化县| 榆林市| 玛纳斯县| 卓资县| 黄梅县| 南宁市| 什邡市| 兴文县| 伽师县| 南江县| 襄城县| 安泽县| 正宁县| 水富县| 延吉市| 专栏| 东阳市| 承德县| 乌兰察布市| 三穗县| 鄂尔多斯市| 崇文区| 本溪市| 连江县| 芦溪县| 牡丹江市| 竹溪县| 石门县| 临高县| 株洲县| 汾西县| 汾西县| 额尔古纳市|