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
constructArgumentsConstructArgument[]
HSTSEnforcer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected HSTSEnforcer(CreationData data)
Parameters
dataCreationData
HSTSEnforcer(HSTSEnforcerHandle)
protected HSTSEnforcer(HSTSEnforcerHandle handle)
Parameters
handleHSTSEnforcerHandle
Fields
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<HSTSEnforcer, HSTSEnforcer.ChangedSignalArgs> ChangedSignal
Field Value
Methods
GetDomains(bool)
public List GetDomains(bool sessionPolicies)
Parameters
sessionPoliciesbool
Returns
GetGType()
public static Type GetGType()
Returns
GetPolicies(bool)
public List GetPolicies(bool sessionPolicies)
Parameters
sessionPoliciesbool
Returns
HasValidPolicy(string)
public bool HasValidPolicy(string domain)
Parameters
domainstring
Returns
IsPersistent()
public bool IsPersistent()
Returns
New()
public static HSTSEnforcer New()
Returns
NewFromPointer(nint, bool)
Creates a new managed HSTSEnforcer instance for a given pointer.
public static HSTSEnforcer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new HSTSEnforcer and sets the properties specified by the construct arguments.
public static HSTSEnforcer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetPolicy(HSTSPolicy)
public void SetPolicy(HSTSPolicy policy)
Parameters
policyHSTSPolicy
SetSessionPolicy(string, bool)
public void SetSessionPolicy(string domain, bool includeSubdomains)
Parameters
Events
OnChanged
public event SignalHandler<HSTSEnforcer, HSTSEnforcer.ChangedSignalArgs> OnChanged