If you keep your Rampart configuration separate from the WSDL, as recommended, you also need to apply that configuration to the service description.(如果将Rampart配置与WSDL分离,正如建议的那样,您也需要对服务描述应用这些配置。)
The policy document containing the Rampart configuration is shown in Listing 3.(清单3展示了包含有Rampart配置的策略文档。)
The callback technique lets you use any verification technique you want as an extension of the Rampart security handling.(回调技术可以让您使用任何检查技巧来扩展Rampart安全处理。)
If you want to keep your server-side Rampart configuration out of the WSDL (generally a very good idea!) you need to include it in the services.xml.(如果希望将服务器端rampart配置与WSDL分离(通常是一个很不错的主意!))
Listing 2 shows the Rampart client configuration used with the performance tests in this article.(清单2显示本文中性能测试中用到的Rampart客户端配置。)
Listing 3 shows the Axis2 client code used to configure Rampart and activate WS-Addressing.(清单3显示的是用于配置Rampart和激活WS-Addressing的Axis2客户端代码。)
These two values are five minutes apart in this case, which is the default for Rampart.(这两个值在本例中为5分钟的时间间隔,这是Rampart的默认设置。)
At run time, Rampart needs to get the password used to protect the private key to be used to decrypt the encrypted data.(在运行时,Rampart需要获得用于保护私有密匙的密码,这个私有密匙用于对已加密数据进行解密。)
Rampart certainly has a lot of room for improvement.(Rampart肯定还有很多改进的空间。)
To use Rampart for your client code, you first need to have the module available for use with Axis2.(要对客户机代码使用Rampart,首先需要对Axis2使用模块。)