Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TlsStream.AuthenticateAsClientAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9147)

AuthenticateAsClientAsync(String)

Performs TLS negotiation. This TlsStream will behave as a TLS client. To configure security parameters use the Parameters property.

Declaration
public Task AuthenticateAsClientAsync(string targetHost)
Parameters
Type Name Description
String targetHost

TLS/SSL server's common name.

Returns
Type Description
Task

A Task that represents the asynchronous operation.

AuthenticateAsClientAsync(TlsClientSettings)

Performs TLS negotiation. This TlsStream will behave as a TLS client. To configure security parameters use the Parameters property.

Declaration
public Task AuthenticateAsClientAsync(TlsClientSettings settings)
Parameters
Type Name Description
TlsClientSettings settings

TLS/SSL security settings.

Returns
Type Description
Task

A Task that represents the asynchronous operation.

AuthenticateAsClientAsync(TlsClientSettings, CancellationToken)

Performs TLS negotiation. This TlsStream will behave as a TLS client. To configure security parameters use the Parameters property.

Declaration
public virtual Task AuthenticateAsClientAsync(TlsClientSettings settings, CancellationToken cancellationToken)
Parameters
Type Name Description
TlsClientSettings settings

TLS/SSL security settings.

CancellationToken cancellationToken

Cancellation token.

Returns
Type Description
Task

A Task that represents the asynchronous operation.

In This Article
  • AuthenticateAsClientAsync(String)
  • AuthenticateAsClientAsync(TlsClientSettings)
  • AuthenticateAsClientAsync(TlsClientSettings, CancellationToken)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies