Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SslStream::IsMutuallyAuthenticated Property

 

Gets a Boolean value that indicates whether both server and client have been authenticated.

Namespace:   System.Net.Security
Assembly:  System (in System.dll)

public:
property bool IsMutuallyAuthenticated {
	virtual bool get() override;
}

Property Value

Type: System::Boolean

true if the server has been authenticated; otherwise false.

Mutual authentication is specified by the server when the server wants the client to provide a certificate for authentication.

The following code example demonstrates displaying the value of this property.

static void DisplaySecurityServices( SslStream^ stream )
{
   Console::WriteLine( L"Is authenticated: {0} as server? {1}", stream->IsAuthenticated, stream->IsServer );
   Console::WriteLine( L"IsSigned: {0}", stream->IsSigned );
   Console::WriteLine( L"Is Encrypted: {0}", stream->IsEncrypted );
}


.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft