Bagikan melalui


NegotiateStream.IsMutuallyAuthenticated Properti

Definisi

Boolean Mendapatkan nilai yang menunjukkan apakah server dan klien telah diautentikasi.

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

Nilai Properti

true jika server telah diautentikasi; jika tidak, false.

Contoh

Contoh kode berikut menunjukkan menampilkan nilai properti ini.

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);
}

Keterangan

Autentikasi timbal balik ditentukan oleh klien ketika klien ingin server memberikan kredensial untuk autentikasi. Secara default, klien meminta autentikasi timbal balik.

Protokol Negosiasi memilih NTLM atau Kerberos tergantung pada protokol keamanan yang didukung oleh klien dan server. NTLM tidak mendukung autentikasi timbal balik.

Berlaku untuk