打印

[Java] jboss 的 web service 如何在方法层上加密

jboss 的 web service 如何在方法层上加密

<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config
                    http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">

<!-- <key-store-file>WEB-INF/keystores/Client.jks </key-store-file>
<key-store-password>password </key-store-password>
  <trust-store-file>WEB-INF/keystores/Client.jks </trust-store-file>
<trust-store-password>password </trust-store-password>-->
<key-store-file>WEB-INF/keystores/Server.jks </key-store-file>
<key-store-password>password </key-store-password>
<!--  <trust-store-file>WEB-INF/keystores/Client.jks </trust-store-file>
<trust-store-password>password </trust-store-password>-->
<trust-store-file>WEB-INF/keystores/Client.jks </trust-store-file>
<trust-store-password>password </trust-store-password>


<config>
<sign type="x509v3" alias="{9af39f23-9331-4211-bb23-5d964d0bfdfa}"/>
<!-- <sign type="x509v3"
alias="857c1cc0c2dee4d649278afbec3252cd_945fade0-a1ac-4897-ba5d-bcc32a571ab5" />-->
<encrypt type="x509v3"
alias="857c1cc0c2dee4d649278afbec3252cd_945fade0-a1ac-4897-ba5d-bcc32a571ab5"
algorithm="triple-des" keyWrapAlgorithm="rsa_15"
tokenReference="keyIdentifier" />
<requires>
<signature />
<encryption />
</requires>
</config>
</jboss-ws-security>
encrypt 元素的配置是对整个WS(web service)起作用的但是我只想对其中两个方法使用密匙对加密.请问怎么指定到方法上,万分感谢

TOP

提示: 作者被禁止或删除 内容自动屏蔽

TOP

使用ws-security!
[size=4][b]-----孰能浊以静之徐清 孰能安以动之徐生-----[/b][/size] ---------------- [img]http://tmpimg.com/files/1538/fortiger.jpg[/img] [size=3][b][u][color=red]天神MM作品 版权所有 翻版必究[/color][/u][/b][/size]

TOP

左跟右没衔接好,呵呵

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-12-3 08:57 京ICP证060528 号

Designed By 17DST