INetworkHelperServiceIsSecureConnection Method (Boolean, IDictionaryString, String, IPAddress) |
Determines whether the specified request uses a secure (HTTPS) connection from the point-of-view of
the browser.
Namespace:
Dundas.BI.Services
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
Syntaxbool IsSecureConnection(
bool isSecureConnection,
IDictionary<string, string> requestHeaders,
IPAddress remoteIpAddress
)
Function IsSecureConnection (
isSecureConnection As Boolean,
requestHeaders As IDictionary(Of String, String),
remoteIpAddress As IPAddress
) As Boolean
bool IsSecureConnection(
bool isSecureConnection,
IDictionary<String^, String^>^ requestHeaders,
IPAddress^ remoteIpAddress
)
abstract IsSecureConnection :
isSecureConnection : bool *
requestHeaders : IDictionary<string, string> *
remoteIpAddress : IPAddress -> bool
Parameters
- isSecureConnection
- Type: SystemBoolean
A value indicating whether the HTTP request indicates that it is already secure. - requestHeaders
- Type: System.Collections.GenericIDictionaryString, String
The request headers. - remoteIpAddress
- Type: System.NetIPAddress
The IP address associated with the request.
Return Value
Type:
Boolean if the connection is secure; otherwise,
.
Remarks
In addition to isSecureConnection, this method considers the values
of the X-Forwarded-Proto and X-Forwarded-Protocol (as long as the IP address is a trusted proxy IP).
See Also