Step 4: Configure Web services security extensions and bindings for validating the usernametoken.
步骤4:为验证usernametoken配置Web服务安全扩展和绑定。
Use UsernameToken in the following scenarios.
应在下列场景中使用usernametoken。
UsernameToken is easy to use, configure and maintain.
UsernameToken易于使用、配置和维护。
Using a UsernameToken with a dynamic user ID and password.
使用带有动态用户ID和密码的usernametoken。
Username: WS-Security plain-text UsernameToken on requests.
username:请求中使用WS - Security纯文本usernametoken。
The client passes the user name and password in a UsernameToken.
客户端将用户名和密码传递到UsernameToken。
Listing 2 shows an example of UsernameToken dynamic configuration in client code.
清单2是在客户机代码中动态地配置usernametoken的示例。
The following sample SOAP message shows a SOAP header containing a UsernameToken.
下面的SOAP消息示例显示了一个包含usernametoken的SOAP标头。
The first is a simple UsernameToken that just wraps a plain-text username and password.
第一个示例是一个简单的UsernameToken,它仅仅包装明文用户名和密码。
Step 3: Configure Web services client security extensions and bindings for UsernameToken
步骤3:为UsernameToken配置Web服务客户端安全扩展和绑定
The most basic form of UsernameToken sends both the username and password as plain text.
用户名令牌的最基础形式同时以纯文本的形式发送用户名和密码。
The UsernameToken specification recommends the following counter-measures to deal with this threat
UsernameToken规范建议了下列应对措施来处理此威胁
The added configuration information for this UsernameToken case is just a security callback class.
为这个UsernameToken 示例添加的配置信息是一个安全回调类。
Web service producers should reject any UsernameToken not using both nonce and creation timestamps.
Web服务生产者应拒绝任何没有同时使用nonce和创建时间戳的UsernameToken。
In this article, you'll go through the following sample scenario for configuring and securing UsernameToken.
在本文中,您将通过下列示例场景了解如何配置和保护UsernameToken。
Notice that this message now contains a soapenv element with a Security; element that contains the UsernameToken.
注意,此消息现在包含一个带有Security的soapenv元素,该元素包含UsernameToken。
You'll configure the Web service to accept the SOAP headers and authenticate the identity passed in the UsernameToken.
您将配置Web服务以接受SOAP标头并验证传递到UsernameToken中的身份。
You will configure the web service to accept the SOAP headers and authenticate the identity passed in the UsernameToken.
您将配置这个Web服务,以接受SOAP头部,并对UsernameToken中传入的身份进行身份验证。
Using UsernameToken in combination with SSL is very common for authentication of a Web services client to a service provider.
将UsernameToken与SSL结合使用对Web服务客户端和服务提供者进行身份验证极为常见。
There's one significant difference between the Listing 1 WSDL and that used for UsernameToken in the Axis2 and Metro examples.
在清单1与Axis2和Metro示例使用的WSDL之间有一个重要的差异。
The overhead from building the in-memory model is the apparent cause of Axis2/Rampart's poor performance in the UsernameToken case.
构建内存模型的开销就是在UsernameToken例子中Axis2/Rampart表现不佳的明显原因。
Username and password provided in the module deployment descriptor as part of the configuration of the UsernameToken authentication.
模块部署描述符中作为UsernameToken身份验证配置一部分提供的用户名和密码。
UsernameToken is similar to HTTP Basic authentication and provides minimal features, but is effective in a broad range of scenarios.
UsernameToken类似于HTTP基本身份验证,它提供的功能较少,但在各种场景中非常有效。
UsernameToken, for example, is a simple feature providing a standardized way of communicating basic user authentication to a service.
举例来说,UsernameToken就是一个简单的特性,它提供了与服务传递基本用户授权的标准方法。
Web service producers should provide a timestamp freshness limitation, and any UsernameToken with stale timestamps should be rejected.
Web服务生产者应提供一个时间戳有效性限制,任何具有失效时间戳的UsernameToken都应被拒绝。
The UsernameToken profile is a good way to pass authentication information between applications running in a heterogeneous environment.
UsernameTokenProfile是在异类环境中运行的应用程序之间传递身份验证信息的好方法。
On the web service side, with a port that accepts the UsernameToken, there is no compromise being made on interoperability of the service.
在Web服务端,通过使用接受UsernameToken的端口,不会对服务的互操作性造成任何影响。
Using private key-certificate pairs for signing and encrypting messages is more complex to configure than the simple UsernameToken example.
与简单的UsernameToken示例相比,使用私有密钥-证书对进行消息签名和加密的配置比较复杂。
Listing 2 shows the policy section of the Listing 1 WSDL, with a WSIT custom extension added to configure the client-side UsernameToken support.
清单2展示了清单1WSDL中的策略部分,通过添加一个WSIT自定义扩展来配置客户端usernametoken支持。
Just as in the UsernameToken example, you can configure the security parameters in your client code as an alternative to using a cxf-client.xml file.
与usernametoken示例一样,可以不使用cxf - client . xml文件,而是在客户机代码中配置安全参数。
应用推荐