Class HstsConfiguration
Represents the HTTP Strict Transport Security configuration
Inheritance
System.Object
HstsConfiguration
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: WaCore.Web.Middleware.SecureHeaders.Models
Assembly: WaCore.Web.dll
Syntax
public class HstsConfiguration : IConfigurationBase
Constructors
| Improve this Doc View SourceHstsConfiguration()
Declaration
public HstsConfiguration()
Properties
| Improve this Doc View SourceIncludeSubDomains
(OPTIONAL) Whether this rule applies to all of the site's subdomains as well
Declaration
public bool IncludeSubDomains { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxAge
The time, in seconds, that the browser should remember that this site is only to be accessed using HTTPS
Declaration
public int MaxAge { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Preload
Google maintains an HSTS preload service. By following the guidelines and successfully submitting your domain, browsers will never connect to your domain using an insecure connection
Declaration
public bool Preload { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceBuildHeaderValue()
Declaration
public string BuildHeaderValue()
Returns
Type | Description |
---|---|
System.String |