TlsParameters Class
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 8.0.9673)
Security parameters.
Syntax
public class TlsParameters
Inherited Members
Constructors
| Name | Description |
|---|---|
| TlsParameters() | Initializes a new instance of TlsParameters with default parameters. |
Properties
| Name | Description |
|---|---|
| AcceptableAuthorities | Gets or sets the list of acceptable certificate authorities (server side only). |
| AllowDeprecatedVersions | Gets or sets a value indicating whether deprecated versions of TLS/SSL protocol might be enabled using the Version property. Currently deprecated versions: SSL 3.0. |
| AllowedCurves | Gets or sets the group of allowed elliptic curves (for ECDHE cipher suites). |
| AllowedSuites | Gets or sets the group of allowed cipher suites. |
| AllowVulnerableSuites | Gets or sets a value indicating whether vulnerable ciphers might be enabled using AllowedSuites property. |
| Certificate | Gets or sets the certificate to be used (server side only). |
| CertificateChainMode | Specifies how to send supplied certificate chains to the other side. |
| CertificatePolicy | Gets or sets the certificate policy for server sockets. |
| CertificateRequestHandler | Gets or sets the client certificate request handler. |
| CertificateVerifier | Gets or sets the certificate verifier. |
| CommonName | Gets or sets the common name of the server (client side only). |
| Entity | Gets or sets the entity of a socket. |
| EphemeralDiffieHellmanParameters | Gets or sets the ephemeral Diffie-Hellman parameters for DHE key exchange on server sockets. |
| MinimumDiffieHellmanKeySize | Gets or sets the minimum allowed size (in bits) of the ephemeral Diffie-Hellman prime. Valid values are from 512 to 16384, inclusive (client side only). |
| Options | Gets or sets the connection options. |
| SendOcspStatusRequest | Determines whether the client sends StatusRequest extension in ClientHello handshake message. The presence of the StatusRequest extension serves as an indication for the server that the client can handle OCSP stapling response. The default value is true. The StatusRequest extension is sent. |
| Session | Gets or sets the session to resume (client side only). |
| TemporaryRSAParameters | Gets or sets the temporary RSA key parameters for RSA_EXPORT key exchange on server sockets with certificates with key length >512. |
| Version | Gets or sets the allowed protocol versions. |
Methods
| Name | Description |
|---|---|
| Clone() | Returns a shallow copy of the current parameters. |
| GetApplicationLayerProtocols() | Gets supported application protocols for the Application-Layer Protocol Negotiation (ALPN) extension in the ClientHello message. Default value is an empty string array - an Application-Layer Protocol Negotiation extension is NOT send in the ClientHello message. |
| GetNamedGroups() | Returns an enumerator that yields allowed named groups, in order of preference, for TLS 1.3. |
| GetPreferredSuites() | Gets collection of cipher suites that are used (in given order) in preference to the remaining suites. Only applies to TLS 1.2 or lower. |
| GetPskKeyExchangeModes() | Returns an enumerator that yields allowed pre-shared key exchange modes for TLS 1.3. |
| GetSignatureSchemes() | Returns an enumerator that yields allowed signature schemes in order of preference. |
| GetSymmetricCipherSuites() | Gets an enumeration of allowed symmetric cipher suites for TLS 1.3 and their order. See SetSymmetricCipherSuites(TlsSymmetricCipherSuite[]) for more info. |
| SetApplicationLayerProtocols(String[]) | Sets supported application protocols for the Application-Layer Protocol Negotiation (ALPN) extension in the ClientHello message. Default value is an empty string array - an Application-Layer Protocol Negotiation extension is NOT send in the ClientHello message. |
| SetNamedGroups(TlsNamedGroup[]) | Sets allowed named groups, in order of preference, for TLS 1.3. |
| SetPreferredSuites(TlsCipherSuite[]) | Sets cipher suites to be used in preference to the remaining suites. Only applies to TLS 1.2 or lower. |
| SetPskKeyExchangeModes(TlsPskKeyExchangeMode[]) | Sets allowed pre-shared key exchange modes for TLS 1.3. |
| SetSignatureSchemes(TlsSignatureScheme[]) | Sets allowed signature schemes in order of preference. |
| SetSymmetricCipherSuites(TlsSymmetricCipherSuite[]) | Specifies a list of allowed symmetric cipher suites for TLS 1.3 and their order. For TLS 1.2 and lower, use AllowedSuites property instead. |