HSTSPolicy.session_policy


Description:

[ CCode ( has_construct_function = false ) ]
public HSTSPolicy.session_policy (string domain, bool include_subdomains)

Creates a new session HSTSPolicy with the given attributes.

A session policy is a policy that is valid during the lifetime of the HSTSEnforcer it is added to. Contrary to regular policies, it has no expiration date and is not stored in persistent enforcers. These policies are useful for user-agent to load their own or user-defined rules.

domain is a domain on which the strict transport security policy represented by this object must be enforced.

If include_subdomains is true, the strict transport security policy must also be enforced on all subdomains of domain.

Parameters:

domain

policy domain or hostname

include_subdomains

true if the policy applies on sub domains

Returns:

a new HSTSPolicy.