Share via


<serviceCredentials>

指定要用於驗證 (Authenticate) 服務的認證,以及用戶端認證的驗證 (Validation) 相關設定。

結構描述階層

<system.serviceModel>
  <behaviors>
    <serviceBehaviors>
      <serviceBehaviors> 的 <behavior>
        <serviceCredentials>

語法

<serviceCredentials type="String">
   <clientCertificate>
   </clientCertificate>
   <issuedTokenAuthentication>
   </issuedTokenAuthentication>
   <peer>
   </peer>
   <secureConversationAuthentication>
   </secureConversationAuthentication>
   <serviceCertificate>
   </serviceCertificate>
   <userNameAuthentication>
   </userNameAuthentication>
   <windowsAuthentication>
   </windowsAuthentication>
</serviceCredentials>

屬性和元素

下列各節說明屬性、子項目和父項目。

屬性

屬性 描述

type

字串,指定這個組態項目的型別。

項目子系

項目 描述

<serviceCredentials> 的 <clientCertificate>

指定當用戶端憑證可在超出範圍使用時,要使用的憑證。這個項目也會指定用戶端憑證驗證設定。此項目的型別為 X509InitiatorCertificateServiceElement

<serviceCredentials> 的 <issuedTokenAuthentication>

指定這個服務的目前發行的權杖。此項目的型別為 IssuedTokenServiceElement

<serviceCredentials> 的 <peer>

指定對等節點的目前認證。此項目的型別為 PeerCredentialElement

<serviceCredential> 的 <secureConversationAuthentication>

指定安全對話的目前認證。此項目的型別為 SecureConversationServiceElement

<serviceCredentials> 的 <serviceCertificate>

指定服務用來識別本身的憑證。此項目的型別為 X509RecipientCertificateServiceElement

<userNameAuthentication>

指定使用者名稱密碼驗證的設定。此項目的型別為 UserNameServiceElement

<serviceCredentials> 的 <windowsAuthentication>

指定 Windows 認證驗證的設定。此項目的型別為 WindowsServiceElement

父項目

項目 描述

<endpointBehaviors> 的 <behavior>

指定行為項目。

另請參閱

參考

ServiceCredentialsElement
ServiceCredentials

其他資源

Security Behaviors in WCF