HSTSPolicy
Description:
[ CCode ( has_construct_function = false ) ]
public HSTSPolicy (string domain, ulong max_age, bool include_subdomains)
public HSTSPolicy (string domain, ulong max_age, bool include_subdomains)
Creates a new HSTSPolicy with the given attributes.
domain
is a domain on which the strict transport security policy represented by this object must be enforced.
max_age
is used to set the "expires" attribute on the policy; pass SOUP_HSTS_POLICY_MAX_AGE_PAST for an already-expired policy, or
a lifetime in seconds.
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 |
max_age |
max age of the policy |
include_subdomains |
|
Returns:
a new HSTSPolicy. |