<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)起作用的但是我只想对其中两个方法使用密匙对加密.请问怎么指定到方法上,万分感谢