Table of Contents

Class HSTSEnforcer

Namespace
Soup
Assembly
Soup-3.0.dll
public class HSTSEnforcer : Object, SessionFeature, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
HSTSEnforcer
Implements
Derived
Inherited Members

Constructors

HSTSEnforcer(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public HSTSEnforcer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

HSTSEnforcer(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected HSTSEnforcer(CreationData data)

Parameters

data CreationData

HSTSEnforcer(HSTSEnforcerHandle)

protected HSTSEnforcer(HSTSEnforcerHandle handle)

Parameters

handle HSTSEnforcerHandle

Fields

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<HSTSEnforcer, HSTSEnforcer.ChangedSignalArgs> ChangedSignal

Field Value

Signal<HSTSEnforcer, HSTSEnforcer.ChangedSignalArgs>

Methods

GetDomains(bool)

public List GetDomains(bool sessionPolicies)

Parameters

sessionPolicies bool

Returns

List

GetGType()

public static Type GetGType()

Returns

Type

GetPolicies(bool)

public List GetPolicies(bool sessionPolicies)

Parameters

sessionPolicies bool

Returns

List

HasValidPolicy(string)

public bool HasValidPolicy(string domain)

Parameters

domain string

Returns

bool

IsPersistent()

public bool IsPersistent()

Returns

bool

New()

public static HSTSEnforcer New()

Returns

HSTSEnforcer

NewFromPointer(nint, bool)

Creates a new managed HSTSEnforcer instance for a given pointer.

public static HSTSEnforcer NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

HSTSEnforcer

NewWithProperties(ConstructArgument[])

Creates a new HSTSEnforcer and sets the properties specified by the construct arguments.

public static HSTSEnforcer NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

HSTSEnforcer

SetPolicy(HSTSPolicy)

public void SetPolicy(HSTSPolicy policy)

Parameters

policy HSTSPolicy

SetSessionPolicy(string, bool)

public void SetSessionPolicy(string domain, bool includeSubdomains)

Parameters

domain string
includeSubdomains bool

Events

OnChanged

public event SignalHandler<HSTSEnforcer, HSTSEnforcer.ChangedSignalArgs> OnChanged

Event Type

SignalHandler<HSTSEnforcer, HSTSEnforcer.ChangedSignalArgs>