다음을 통해 공유


<basicHttpBinding>의 <transport>

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

  • HTTP 인증을 사용하여 클라이언트 인증을 수행할 때 사용할 자격 증명의 형식을 지정합니다. 기본값은 None입니다. 이 특성은 HttpClientCredentialType 형식입니다.

proxyCredentialType

  • HTTP를 통한 프록시를 사용하여 도메인 내에서 클라이언트 인증을 수행할 때 사용되는 자격 증명의 형식을 지정합니다. 이 특성은 부모 security 요소의 mode 특성이 Transport 또는 TransportCredentialsOnly일 때만 적용할 수 있습니다. 이 특성은 HttpProxyCredentialType 형식입니다.

realm

다이제스트 또는 기본 인증의 HTTP 인증 체계에 사용되는 영역을 지정하는 문자열입니다. 기본값은 빈 문자열입니다.

policyEnforcement

이 열거형은 ExtendedProtectionPolicy가 적용되는 경우를 지정합니다.

  1. Never - 정책이 적용되지 않습니다(확장 보호가 사용되지 않음).

  2. WhenSupported – 클라이언트에서 확장 보호를 지원하는 경우에만 정책이 적용됩니다.

  3. Always – 정책이 항상 적용됩니다. 확장 보호를 지원하지 않는 클라이언트는 인증되지 않습니다.

protectionScenario

이 열거형은 정책을 통해 적용되는 보호 시나리오를 지정합니다.

자식 요소

None

부모 요소

요소 설명

<basicHttpBinding>의 <security>

<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

개념

<binding>

기타 리소스

Securing Services and Clients
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients