INetworkHelperServiceIsSecureConnection(Boolean, IDictionaryString, String, IPAddress, Boolean) Method |
Determines whether the specified request uses a secure (HTTPS) connection from the point-of-view of
the browser.
Namespace: Dundas.BI.ServicesAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntaxbool IsSecureConnection(
bool isSecureConnection,
IDictionary<string, string?> requestHeaders,
IPAddress? remoteIpAddress,
bool requireTrustedProxy
)
Function IsSecureConnection (
isSecureConnection As Boolean,
requestHeaders As IDictionary(Of String, String),
remoteIpAddress As IPAddress,
requireTrustedProxy As Boolean
) As Boolean
bool IsSecureConnection(
bool isSecureConnection,
IDictionary<String^, String^>^ requestHeaders,
IPAddress^ remoteIpAddress,
bool requireTrustedProxy
)
abstract IsSecureConnection :
isSecureConnection : bool *
requestHeaders : IDictionary<string, string> *
remoteIpAddress : IPAddress *
requireTrustedProxy : bool -> bool Parameters
- isSecureConnection Boolean
- A value indicating whether the HTTP request indicates that it is already secure.
- requestHeaders IDictionaryString, String
- The request headers (keys must be case-insensitive).
- remoteIpAddress IPAddress
- The IP address associated with the request.
- requireTrustedProxy Boolean
-
A value indicating whether a trusted proxy server is required when HTTP headers (e.g. X-Forwarded-Proto) are
used to determine the result.
Return Value
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
or requireTrustedProxy is ).
See Also