SslStream.NegotiateClientCertificateAsync(CancellationToken) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Negotiates the client certificate on the authenticated connection.
[System.Runtime.Versioning.SupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.SupportedOSPlatform("linux")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public virtual System.Threading.Tasks.Task NegotiateClientCertificateAsync(System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task NegotiateClientCertificateAsync(System.Threading.CancellationToken cancellationToken = default);
[<System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.SupportedOSPlatform("linux")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
abstract member NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function NegotiateClientCertificateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
The task object representing the asynchronous operation.
- Attributes
The cancellation token was canceled. This exception is stored into the returned task.
You can negotiate the client certificate once authentication is successfully processed via one of the AuthenticateAs...
methods.
Product | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: