Show / Hide Table of Contents

Class ExpectCtHeaderValue

Represents value of Expect-CT header.

Inheritance
System.Object
ExpectCtHeaderValue
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 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.

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