HttpClientCredentialType 열거형

정의

HTTP 클라이언트에 대한 유효한 자격 증명 형식을 열거합니다.

public enum class HttpClientCredentialType
public enum HttpClientCredentialType
type HttpClientCredentialType = 
Public Enum HttpClientCredentialType
상속
HttpClientCredentialType

필드

Basic 1

기본 인증을 지정합니다. 자세한 내용은 RFC 2617 – HTTP Authentication: Basic and Digest Authentication을 참조하세요.

Certificate 5

인증서를 사용하여 클라이언트 인증을 지정합니다.

Digest 2

다이제스트 인증을 지정합니다. 자세한 내용은 RFC 2617 – HTTP Authentication: Basic and Digest Authentication을 참조하세요.

InheritedFromHost 6

인증은 호스트에서 상속됩니다.

None 0

익명 인증을 지정합니다.

Ntlm 3

NTLM을 사용하여 클라이언트 인증을 지정합니다.

Windows 4

Windows를 사용하여 클라이언트 인증을 지정합니다.

예제

다음 코드에서는 ClientCredentialType를 이 열거형의 멤버로 설정하는 방법을 보여 줍니다.

// The code uses a shortcut to specify the security mode to Transport.
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
' The code uses a shortcut to specify the security mode to Transport.
Dim b As WSHttpBinding = New WSHttpBinding(SecurityMode.Transport)
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows

설명

이 열거형은 인증에 ClientCredentialType 사용할 클라이언트 자격 증명의 유형을 지정하는 데 사용됩니다.

이 값으로 TransportWithMessageCredential설정되면 SecurityModeHttpClientCredentialType 이 무시됩니다.

적용 대상