ssllabs.hstspolicy¶
-
class
ssllabs.hstspolicy.
HstsPolicy
(data)[source]¶ Bases:
ssllabs.object.Object
The HSTS Policy, accessed from
ssllabs.endpointdetails.EndpointDetails.hstsPolicy()
-
LONG_MAX_AGE
¶ this constant contains what SSL Labs considers to be sufficiently large max-age value
-
directives
¶ list of raw policy directives
-
error
¶ error message when error is encountered, null otherwise
-
header
¶ the contents of the HSTS response header, if present
-
includeSubDomains
¶ true if the includeSubDomains directive is set; null otherwise
-
maxAge
¶ the max-age value specified in the policy; null if policy is missing or invalid or on parsing error; the maximum value currently supported is 9223372036854775807
-
preload
¶ true if the preload directive is set; null otherwise
-
status
¶ HSTS status:
- unknown
- either before the server is checked or when its HTTP response headers are not available
- absent
- header not present
- present
- header present and syntatically correct
- invalid
- header present, but couldn’t be parsed
- disabled
- header present and syntatically correct, but HSTS is disabled
-