SslStream.NegotiatedCipherSuite Property

Definition

Important

This API is not CLS-compliant.

Gets the cipher suite which was negotiated for this connection.

C#
[System.CLSCompliant(false)]
public virtual System.Net.Security.TlsCipherSuite NegotiatedCipherSuite { get; }

Property Value

One of the enumeration values that identifies the cipher suite which was negotiated for this connection.

Attributes

Exceptions

The property was accessed before the completion of the authentication process or the authentication process failed.

Remarks

This property gets the cipher suite that is going to be used in the communication between a client and server by the underlying SSL/TLS implementation. It is only available after a successful call to AuthenticateAsServer or AuthenticateAsClient.

Applies to

Produkt Verzie
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10