Show / Hide Table of Contents

Class StrictTransportSecurityHeaderValue

Represents value of Strict-Transport-Security header.

Inheritance
System.Object
StrictTransportSecurityHeaderValue
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)
Namespace: Lib.AspNetCore.Security.Http.Headers
Assembly: Lib.AspNetCore.Security.dll
Syntax
public class StrictTransportSecurityHeaderValue

Constructors

StrictTransportSecurityHeaderValue(UInt32)

Instantiates a new StrictTransportSecurityHeaderValue.

Declaration
public StrictTransportSecurityHeaderValue(uint maxAge)
Parameters
Type Name Description
System.UInt32 maxAge

The time (in seconds) that the browser should remember that this resource is only to be accessed using HTTPS.

Fields

MinimumPreloadMaxAge

The minimum value for MaxAge when Preload is set to true.

Declaration
public const uint MinimumPreloadMaxAge = 10886400U
Field Value
Type Description
System.UInt32

Properties

IncludeSubDomains

Gets or sets the value indicating if this rule applies to all subdomains as well.

Declaration
public bool IncludeSubDomains { get; set; }
Property Value
Type Description
System.Boolean

MaxAge

Gets or sets the time (in seconds) that the browser should remember that this resource is only to be accessed using HTTPS.

Declaration
public uint MaxAge { get; set; }
Property Value
Type Description
System.UInt32

Preload

Gets or sets the value indicating if subscription to HSTS preload list (https://hstspreload.appspot.com/) should be confirmed.

Declaration
public bool Preload { get; set; }
Property Value
Type Description
System.Boolean

Methods

ToString()

Gets the string representation of header value.

Declaration
public override string ToString()
Returns
Type Description
System.String

The string representation of header value.

Overrides
System.Object.ToString()
Back to top Copyright © 2016 - 2023 Tomasz Pęczek