HttpSettings Class
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
Specifies various HTTP/HTTPS settings.
Syntax
public class HttpSettings : SslSettings
Inherited Members
Constructors
Name | Description |
---|---|
HttpSettings() | Initializes a new instance of the HttpSettings class. |
Properties
Name | Description |
---|---|
AllowRedirectDowngrade | Gets or sets a value indicating whether redirect downgrade from HTTPS to HTTP is allowed (default is false). |
HttpSessionCacheEnabled | Gets or sets a value indicating whether the HTTP session cache is enabled (default is true). |
HttpSessionCacheTimeout | Gets or sets the length of time in milliseconds for caching HTTP sessions (default is 50000 = 50 seconds). Minimal allowed value is 5000. |
SslAcceptAllCertificates | Specifies whether to accept all server certificates by default. This is strongly discouraged in production environment. Inherited from SslSettings. |
SslAllowedCurves | Gets or sets the group of allowed elliptic curves (for ECDHE cipher suites). Inherited from SslSettings. |
SslAllowedSuites | Gets or sets the group of allowed TLS/SSL cipher suites. Inherited from SslSettings. |
SslAllowedVersions | Gets or sets allowed TLS/SSL versions. Inherited from SslSettings. |
SslAllowVulnerableSuites | Gets or sets a value indicating whether vulnerable ciphers might be enabled using SslAllowedSuites property. Inherited from SslSettings. |
SslChannelBindingEnabled | Enables or disables secure channel binding. Only supported on Windows. Inherited from SslSettings. |
SslClientCertificateRequestHandler | Gets or sets TLS/SSL client certificate request handler. Inherited from SslSettings. |
SslDoNotInsertEmptyFragment | Do not send empty record after successful handshake with CBC ciphers. Inherited from SslSettings. |
SslEnableSilentClosure | Enables or disables the requirement for the other side of the connection to send closure alert (close_notify messages). This is in violation of the RFC and potentially opens the communication to truncation attack, but unfortunately it's needed when communicating with some broken TLS servers. When set to null, a behavior suitable for the application protocol is used, depending o whether the protocol is self-terminated. Only applies to TLS 1.2 or lower. Inherited from SslSettings. |
SslExtendedMasterSecretEnabled | Enables or disables extended master secret extension. Inherited from SslSettings. |
SslMinimumDiffieHellmanKeySize | Gets or sets the minimum allowed size (in bits) of the ephemeral Diffie-Hellman prime. Valid values are from 512 to 16384, inclusive. Inherited from SslSettings. |
SslRenegotiationExtensionEnabled | Enables or disables renegotiation indication extension. This option is deprecated, please use SslRenegotiationMode instead. Inherited from SslSettings. |
SslRenegotiationMode | Sets allowed renegotiation mode. Inherited from SslSettings. |
SslServerCertificateValidationOptions | Gets or sets validation options to use when validating a server certificate using the default certificate validator. This value is passed as Options as well. Inherited from SslSettings. |
SslServerCertificateVerifier | Gets or sets TLS/SSL server certificate verifier. Inherited from SslSettings. |
SslServerName | Gets or sets TLS/SSL server's common name. Inherited from SslSettings. |
SslServerNameIndicationEnabled | Enables and disables server name indication. Inherited from SslSettings. |
SslSession | Gets or sets a TLS/SSL session to resume. Inherited from SslSettings. |
SslSessionCacheEnabled | Gets or sets a value indicating whether the TLS/SSL session cache is enabled (default is true). |
SslStrictKeyUsageValidation | Gets or sets a key usage check mode for server certificate. Inherited from SslSettings. |
UseDefaultDomain | Specifies whether to use default domain or NULL domain for SSPI if domain not specified. Inherited from SslSettings. |
UseLargeBuffers | Use larger receive buffer for incoming and outgoing data. |
Methods
Name | Description |
---|---|
GetNamedGroups() | Returns an enumerator that yields allowed named groups, in order of preference, for TLS 1.3. Inherited from SslSettings. |
GetPreferredSuites() | Gets collection of TLS cipher suites that are used (in given order) in preference to the remaining suites specified by SslAllowedSuites. Only applies to TLS 1.2 or earlier. For TLS 1.3, use GetSymmetricCipherSuites() method. Inherited from SslSettings. |
GetPskKeyExchangeModes() | Returns an enumerator that yields allowed pre-shared key exchange modes for TLS 1.3. Inherited from SslSettings. |
GetSignatureSchemes() | Returns an enumerator that yields allowed signature schemes in order of preference. Inherited from SslSettings. |
GetSymmetricCipherSuites() | Gets an enumeration of allowed symmetric cipher suites for TLS 1.3 and their order. See SetSymmetricCipherSuites(TlsSymmetricCipherSuite[]) for more info. Inherited from SslSettings. |
SetNamedGroups(TlsNamedGroup[]) | Sets allowed named groups, in order of preference, for TLS 1.3. Inherited from SslSettings. |
SetPreferredSuites(TlsCipherSuite[]) | Sets TLS cipher suites to be used in preference to the remaining suites specified by SslAllowedSuites. Only applies to TLS 1.2 or earlier. For TLS 1.3, use SetSymmetricCipherSuites(TlsSymmetricCipherSuite[]) method. Inherited from SslSettings. |
SetPskKeyExchangeModes(TlsPskKeyExchangeMode[]) | Sets allowed pre-shared key exchange modes for TLS 1.3. Inherited from SslSettings. |
SetSignatureSchemes(TlsSignatureScheme[]) | Sets allowed signature schemes in order of preference. Inherited from SslSettings. |
SetSymmetricCipherSuites(TlsSymmetricCipherSuite[]) | Specifies a list of allowed symmetric cipher suites for TLS 1.3 and their order. For TLS 1.2 and lower, use SslAllowedSuites property instead. Inherited from SslSettings. |
ToParameters() | Gets an instance of TlsParameters corresponding to these settings. Inherited from SslSettings. |