NegotiateStream.IsMutuallyAuthenticated 속성

정의

서버와 클라이언트 모두 인증되었는지 여부를 나타내는 Boolean 값을 가져옵니다.

public:
 virtual property bool IsMutuallyAuthenticated { bool get(); };
public override bool IsMutuallyAuthenticated { get; }
member this.IsMutuallyAuthenticated : bool
Public Overrides ReadOnly Property IsMutuallyAuthenticated As Boolean

속성 값

Boolean

서버가 인증되었으면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제에서는이 속성의 값을 표시 하는 방법을 보여 줍니다.

static void DisplayAuthenticationProperties( NegotiateStream^ stream )
{
   Console::WriteLine( L"IsAuthenticated: {0}", stream->IsAuthenticated );
   Console::WriteLine( L"IsMutuallyAuthenticated: {0}", stream->IsMutuallyAuthenticated );
   Console::WriteLine( L"IsEncrypted: {0}", stream->IsEncrypted );
   Console::WriteLine( L"IsSigned: {0}", stream->IsSigned );
   Console::WriteLine( L"ImpersonationLevel: {0}", stream->ImpersonationLevel );
   Console::WriteLine( L"IsServer: {0}", stream->IsServer );
}


 static void DisplayAuthenticationProperties(NegotiateStream stream)
{
     Console.WriteLine("IsAuthenticated: {0}", stream.IsAuthenticated);
    Console.WriteLine("IsMutuallyAuthenticated: {0}", stream.IsMutuallyAuthenticated);
    Console.WriteLine("IsEncrypted: {0}", stream.IsEncrypted);
    Console.WriteLine("IsSigned: {0}", stream.IsSigned);
    Console.WriteLine("ImpersonationLevel: {0}", stream.ImpersonationLevel);
    Console.WriteLine("IsServer: {0}", stream.IsServer);
}

설명

상호 인증은 클라이언트가 서버에서 인증을 위한 자격 증명을 제공하려고 할 때 클라이언트에서 지정합니다. 기본적으로 클라이언트는 상호 인증을 요청합니다.

협상 프로토콜은 클라이언트 및 서버에서 지원하는 보안 프로토콜에 따라 NTLM 또는 Kerberos를 선택합니다. NTLM은 상호 인증을 지원하지 않습니다.

적용 대상