TlsStream.AuthenticateAsServerAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9083)
AuthenticateAsServerAsync(CertificateChain)
Performs TLS negotiation. This TlsStream will behave as a TLS server. To configure security parameters use the Parameters property.
Declaration
public Task AuthenticateAsServerAsync(CertificateChain serverCertificate)
Parameters
Type | Name | Description |
---|---|---|
CertificateChain | serverCertificate | Server certificates used for authenticating the server to the client. |
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |
AuthenticateAsServerAsync(TlsServerSettings)
Performs TLS negotiation. This TlsStream will behave as a TLS server. To configure security parameters use the Parameters property.
Declaration
public Task AuthenticateAsServerAsync(TlsServerSettings settings)
Parameters
Type | Name | Description |
---|---|---|
TlsServerSettings | settings | TLS/SSL security settings. |
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |
AuthenticateAsServerAsync(TlsServerSettings, CancellationToken)
Performs TLS negotiation. This TlsStream will behave as a TLS server. To configure security parameters use the Parameters property.
Declaration
public virtual Task AuthenticateAsServerAsync(TlsServerSettings settings, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TlsServerSettings | settings | TLS/SSL security settings. |
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |