TlsStream.AuthenticateAsClientAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9313)
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.  |