快速业务通道

Java Web 服务: Axis2 WS-Security基础 - 编程入门网

作者 佚名技术 来源 NET编程 浏览 发布时间 2012-06-14
ot;>   <SignedInfo>     <ds:CanonicalizationMethod     Algorithm="http://www.w3.org/2001/10/xml-exc- c14n#"     xmlns:ds="http://www.w3.org/2000/09/xmldsig#" />     <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />     <Reference URI="#Id-c80f735c-62e9-4001-8094-702a4605e429">     <Transforms>     <Transform Algorithm="http://www.w3.org/2001/10/xml-exc- c14n#" />    </Transforms>    <DigestMethod  Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />     <DigestValue>lKjc5nyLQDZAIu/hZb4B6mLquow=</DigestValue>     </Reference>    ...   </SignedInfo>    <SignatureValue>TiLmWvlz3mswinLVQn58BgYS0368...</SignatureValue>    <KeyInfo>    <wsse:SecurityTokenReference>    <wsse:Reference  URI="#SecurityToken-faa295..."     ValueType="...-x509-token-profile- 1.0#X509v3" />    </wsse:SecurityTokenReference>   </KeyInfo>   </Signature>  </wsse:Security>  </soap:Header>   <soap:Body wsu:Id="Id-8db9ff44-7bef-4737-8091-cdac51a34db8">   <xenc:EncryptedData Id="EncryptedContent-ba05..."    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#aes128-cbc"/>    <xenc:CipherData>    <xenc:CipherValue>mirmi0KuFEEI56eu2U3cICz...</xenc:CipherValue>    </xenc:CipherData>  </xenc:EncryptedData>   </soap:Body> </soap:Envelope>

Java Web 服务: Axis2 WS-Security基础(2)

时间:2011-10-02 ibm Dennis Sosnoski

在本文中,您将看到一些 WS-Security 头部示例,并且只包含单个令牌。本系列下一篇文章将更进一 步,探讨 清单 1 所示的复杂结构类型。

WS-Security 应用于实际的 SOAP 消息交换。服务实现可以检验 WS-Security 是否恰当应用于传入的 消息,但是客户机需要提前知道它们必须实现什么才能使用服务。由于 WS-Security 的复杂性以及所支 持的选项有限,因此仅使用文本描述很难实现这个目的,而手动配置 WS-Security 处理极容易出现错误 。WS-Policy 是一个用于为 Web 服务指定扩展需求的通用结构,而 WS-SecurityPolicy 是一个专门针对 WS-Security 支持的 WS-Policy 扩展。这两者合起来可以以机器可读的方式描述 WS-Security 需求。 WS-Policy 和 WS-SecurityPolicy 信息可以单独使用,也可以直接嵌入到 Web Services Description Language (WSDL) 文档内部,这样 Web 服务框架就可以将它们自动配置为服务的需求。

Rampart 简介

Rampart 是 Axis2 的安全模块,支持 WS-Security、WS-SecurityPolicy、WS-SecureConversation 和 WS-Trust。在本文中,您将只查看 Rampart 的 WS-Security 和 WS-SecurityPolicy 功能;后续文章 将讨论其他特性。

由于 Rampart 是以模块形式实现(实际上是一对模块 — rampart.mar 和 rahas.mar),它将插入到 Axis2 处理框架中并在出站和入站处理的特定点拦截消息,检查对消息的修改或

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号