Interface HSTSHandler
- All Superinterfaces:
Handler<RoutingContext>, SecurityPolicyHandler
HTTP Strict Transport Security (HSTS) RFC6797.
This handler adds the strict transport security headers, for this domain or subdomains.
- Author:
- Paulo Lopes
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic HSTSHandlercreate()Creates a new instance that does not consider the configuration for sub domains.static HSTSHandlercreate(boolean includeSubDomains) Creates a new instance that shall consider the configuration for sub domains.static HSTSHandlercreate(long maxAge, boolean includeSubDomains) Creates a new instance that shall consider the configuration for sub domains.
-
Field Details
-
DEFAULT_MAX_AGE
static final long DEFAULT_MAX_AGE- See Also:
-
-
Method Details
-
create
Creates a new instance that shall consider the configuration for sub domains.- Parameters:
maxAge- max age to attribute to the headerincludeSubDomains- consider sub domains when adding the header- Returns:
- an instance.
-
create
Creates a new instance that shall consider the configuration for sub domains.- Parameters:
includeSubDomains- consider sub domains when adding the header- Returns:
- an instance.
-
create
Creates a new instance that does not consider the configuration for sub domains. Using the default max age.- Returns:
- an instance.
-