Class ExpectCtHeaderValue
Represents value of Expect-CT header.
Inheritance
Inherited Members
Namespace: Lib.AspNetCore.Security.Http.Headers
Assembly: Lib.AspNetCore.Security.dll
Syntax
public class ExpectCtHeaderValue
  Constructors
ExpectCtHeaderValue()
Instantiates a new ExpectCtHeaderValue with default MaxAge.
Declaration
public ExpectCtHeaderValue()
  ExpectCtHeaderValue(UInt32)
Instantiates a new ExpectCtHeaderValue.
Declaration
public ExpectCtHeaderValue(uint maxAge)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt32 | maxAge | The number of seconds after the reception of the Expect-CT header field during which the client should regard the host from whom the message was received as a Known Expect-CT Host.  | 
      
Fields
DefauMaxAge
The default value for MaxAge (30 days).
Declaration
public const uint DefauMaxAge = 2592000U
  Field Value
| Type | Description | 
|---|---|
| System.UInt32 | 
ReportOnlyMaxAge
The value for MaxAge in report-only mode.
Declaration
public const uint ReportOnlyMaxAge = 0U
  Field Value
| Type | Description | 
|---|---|
| System.UInt32 | 
Properties
Enforce
Gets or sets the value indicating if compliance to the CT Policy should be enforced.
Declaration
public bool Enforce { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
MaxAge
Gets or sets the number of seconds after the reception of the Expect-CT header field during which the client should regard the host from whom the message was received as a Known Expect-CT Host.
Declaration
public uint MaxAge { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt32 | 
ReportUri
Gets or sets the absolute URI to which the client should report Expect-CT failures.
Declaration
public string ReportUri { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
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.  |