HTTP 전송의 인증 매개 변수를 제어하는 속성을 정의합니다.
스키마 계층
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding>
<basicHttpBinding>의 <security>
<basicHttpBinding>의 <transport>
구문
<basicHttpBinding>
<binding>
<security
mode="None|Transport|Message|TransportWithMessageCredential|TransportCredentialOnly">
<transport clientCredentialType="None|Basic|Digest|Ntlm|Windows"
proxyCredentialType="None|Basic|Digest|Ntlm|Windows" realm="string" >
<extendedProtectionPolicy
policyEnforcement="Never|WhenSupported|Always"
protectionScenario="TransportSelected|TrustedProxy">
<customServiceNames></customServiceNames>
</extendedProtectionPolicy>
</transport>
</security>
</binding>
</basicHttpBinding>
특성 및 요소
다음 단원에서는 특성, 자식 요소 및 부모 요소에 대해 설명합니다.
특성
특성 | 설명 |
---|---|
clientCredentialType |
|
proxyCredentialType |
|
realm |
다이제스트 또는 기본 인증의 HTTP 인증 체계에 사용되는 영역을 지정하는 문자열입니다. 기본값은 빈 문자열입니다. |
policyEnforcement |
이 열거형은 ExtendedProtectionPolicy가 적용되는 경우를 지정합니다.
|
protectionScenario |
이 열거형은 정책을 통해 적용되는 보호 시나리오를 지정합니다. |
자식 요소
None
부모 요소
요소 | 설명 |
---|---|
<basicHttpBinding>의 보안 기능을 정의합니다. |
예제
다음 예제에서는 기본 바인딩이 있는 SSL 전송 보안을 사용하는 방법을 보여 줍니다. 기본적으로 기본 바인딩은 HTTP 통신을 지원합니다.
<system.serviceModel>
<services>
<service
type="Microsoft.ServiceModel.Samples.CalculatorService"
behaviorConfiguration="CalculatorServiceBehavior">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="Binding1"
contract="Microsoft.ServiceModel.Samples.ICalculator" />
</service>
</services>
<bindings>
<basicHttpBinding>
<!-- Configure basicHttpBinding with Transport security -- >
<!-- mode and clientCredentialType set to None.-->
<binding name="Binding1">
<security mode="Transport">
<transport clientCredentialType="None"
proxyCredentialType="None">
<extendedProtectionPolicy
policyEnforcement="WhenSupported"
protectionScenario="TransportSelected">
<customServiceNames></customServiceNames>
</extendedProtectionPolicy>
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
참고 항목
참조
Transport
Transport
HttpTransportSecurityElement
HttpTransportSecurity
개념
기타 리소스
Securing Services and Clients
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients