SslClientAuthenticationOptions Class
Definition
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.
Represents a client authentication property bag for the SslStream.
public ref class SslClientAuthenticationOptions
public class SslClientAuthenticationOptions
type SslClientAuthenticationOptions = class
Public Class SslClientAuthenticationOptions
- Inheritance
-
SslClientAuthenticationOptions
Remarks
This property bag is used as argument for AuthenticateAsClientAsync and, in .NET 5 and later versions, for AuthenticateAsClient.
The SocketsHttpHandler uses this property bag in the SslOptions property.
Constructors
SslClientAuthenticationOptions() |
Initializes a new instance of the SslClientAuthenticationOptions class. |
Properties
AllowRenegotiation |
Gets or sets a value that indicates whether the SslStream should allow SSL renegotiation. |
AllowTlsResume |
Gets or sets a value that indicates whether the SslStream should allow TLS resumption. |
ApplicationProtocols |
Gets or sets a list of ALPN protocols. |
CertificateChainPolicy |
Gets or sets an optional customized policy for remote certificate validation. |
CertificateRevocationCheckMode |
Gets or sets the certificate revocation mode for certificate validation. |
CipherSuitesPolicy |
Specifies the cipher suites allowed for TLS. When set to |
ClientCertificateContext |
Gets or sets the client certificate context. |
ClientCertificates |
A collection of certificates to be considered for the client's authentication to the server. |
EnabledSslProtocols |
Gets or sets the value that represents the protocol versions offered by the client to the server during authentication. |
EncryptionPolicy |
Gets or sets the encryption policy. |
LocalCertificateSelectionCallback |
Gets or sets a LocalCertificateSelectionCallback delegate that's responsible for selecting the client authentication certificate used for authentication. |
RemoteCertificateValidationCallback |
Gets or sets a RemoteCertificateValidationCallback delegate that's responsible for validating the certificate supplied by the remote party. |
TargetHost |
Gets or sets the name of the server the client is trying to connect to. The name is used for server certificate validation and can be a DNS name or an IP address. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |