Class SecurityElement
Represents a configuration element containing security related configuration.
Inheritance
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class SecurityElement : ConfigurationElement
Constructors
SecurityElement()
Declaration
public SecurityElement()
Fields
ClaimsAuthenticationElementName
Name of the element representing claim authentication configuration element.
Declaration
public const string ClaimsAuthenticationElementName = "claimsAuthentication"
Field Value
| Type | Description |
|---|---|
| System.String |
ClientAddressHeaderAttributeName
Name of the attribute providing HTTP header name used to retrieve the service caller's IP address.
Declaration
public const string ClientAddressHeaderAttributeName = "clientAddressHeader"
Field Value
| Type | Description |
|---|---|
| System.String |
CorsElementName
Name of the attribute providing CORS configuration.
Declaration
public const string CorsElementName = "cors"
Field Value
| Type | Description |
|---|---|
| System.String |
HttpsRedirectHostAttributeName
Name of the attribute representing HttpsRedirectHost property in the configuration element.
Declaration
public const string HttpsRedirectHostAttributeName = "httpsRedirectHost"
Field Value
| Type | Description |
|---|---|
| System.String |
HttpsRedirectPortAttributeName
Name of the attribute representing HttpsRedirectPort property in the configuration element.
Declaration
public const string HttpsRedirectPortAttributeName = "httpsRedirectPort"
Field Value
| Type | Description |
|---|---|
| System.String |
IsHttpsRequiredAttributeName
Name of the attribute representing SSL/HTTPS requirement property in the configuration element.
Declaration
public const string IsHttpsRequiredAttributeName = "requireHttps"
Field Value
| Type | Description |
|---|---|
| System.String |
NodesCacheElementName
Name of the element representing nodes authorization cache property in the configuration element.
Declaration
public const string NodesCacheElementName = "nodesCache"
Field Value
| Type | Description |
|---|---|
| System.String |
UsersCacheElementName
Name of the element representing users authorization cache property in the configuration element.
Declaration
public const string UsersCacheElementName = "usersCache"
Field Value
| Type | Description |
|---|---|
| System.String |
UserSessionTimeoutAttributeName
Name of the attribute providing user session expiration timeout.
Declaration
public const string UserSessionTimeoutAttributeName = "userSessionTimeout"
Field Value
| Type | Description |
|---|---|
| System.String |
WindowsAuthenticationElementName
Name of the element representing Windows authentication configuration element.
Declaration
public const string WindowsAuthenticationElementName = "windowsAuthentication"
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
ClaimsAuthentication
Gets configuration element containing claim authentication configuration.
Declaration
public ClaimsAuthenticationElement ClaimsAuthentication { get; }
Property Value
| Type | Description |
|---|---|
| ClaimsAuthenticationElement |
ClientAddressHeaderName
Gets or sets the name of the HTTP header providing the ultimate service caller IP address.
Declaration
public string ClientAddressHeaderName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Examples
"X-Forwarded-For" is a de facto standard for identifying the originating IP address of a client (http://en.wikipedia.org/wiki/X-Forwarded-For).
Cors
Gets collection of configuration elements containing CORS configuration for specific URI path prefixes.
Declaration
public CorsElementCollection Cors { get; }
Property Value
| Type | Description |
|---|---|
| CorsElementCollection |
HttpsRedirectHost
Gets or sets HTTPS host name of the web site to redirect users request to, if IsHttpsRequired property is set to true and request comes through an unsecure connection. If this property is not set, then requests are redirected to the same host as in the original request.
Declaration
public string HttpsRedirectHost { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
HttpsRedirectPort
Gets or sets HTTPS port number of the web site to redirect users request to, if IsHttpsRequired property is set to true and request comes through an unsecure connection. If this property is not set, then default port number is used (443).
Declaration
public int HttpsRedirectPort { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
IsHttpsRequired
Gets or sets flag indicating that secure connection (SSL/HTTPS) is required to access repository console and related web services.
Declaration
public bool IsHttpsRequired { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
NodesCache
Gets configuration element containing an node's authorization cache configuration.
Declaration
public AuthorizationCacheElement NodesCache { get; }
Property Value
| Type | Description |
|---|---|
| AuthorizationCacheElement |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
| Type | Description |
|---|---|
| System.Configuration.ConfigurationPropertyCollection |
UsersCache
Gets configuration element containing an user's authorization cache configuration.
Declaration
public AuthorizationCacheElement UsersCache { get; }
Property Value
| Type | Description |
|---|---|
| AuthorizationCacheElement |
UserSessionTimeout
Gets or sets the user session expiration timeout. Default is 5 minutes.
Declaration
public TimeSpan UserSessionTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
WindowsAuthentication
Gets configuration element containing Windows authentication configuration.
Declaration
public WindowsAuthenticationElement WindowsAuthentication { get; }
Property Value
| Type | Description |
|---|---|
| WindowsAuthenticationElement |