指定要用于对服务和客户端凭据验证相关的设置进行身份验证的凭据。
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceCredentials>
Syntax
<serviceCredentials type="String">
<clientCertificate>
</clientCertificate>
<issuedTokenAuthentication>
</issuedTokenAuthentication>
<peer>
</peer>
<secureConversationAuthentication>
</secureConversationAuthentication>
<serviceCertificate>
</serviceCertificate>
<userNameAuthentication>
</userNameAuthentication>
<windowsAuthentication>
</windowsAuthentication>
</serviceCredentials>
特性和元素
下列各节描述了特性、子元素和父元素。
特性
| Attribute | Description |
|---|---|
type |
一个指定此配置元素类型的字符串。 |
子元素
| 元素 | Description |
|---|---|
| <客户端证书> | 指定在客户端证书可用带外时要使用的证书。 此元素还指定客户端证书验证设置。 此元素的类型 X509InitiatorCertificateServiceElement为 . |
| <issuedTokenAuthentication> | 指定此服务的当前颁发的令牌。 此元素的类型 IssuedTokenServiceElement为 . |
| <同辈> | 指定对等节点的当前凭据。 此元素的类型 PeerCredentialElement为 . |
| <secureConversationAuthentication> | 指定安全会话的当前凭据。 此元素的类型 SecureConversationServiceElement为 . |
| <serviceCertificate> | 指定服务用来标识自身的证书。 此元素的类型 X509RecipientCertificateServiceElement为 . |
| <userNameAuthentication> | 指定用户名密码验证的设置。 此元素的类型 UserNameServiceElement为 . |
| <windowsAuthentication> | 指定 Windows 凭据验证的设置。 此元素的类型 WindowsServiceElement为 . |
父元素
| 元素 | Description |
|---|---|
| <行为> | 指定行为元素。 |